瀏覽代碼

Merge pull request #47091 from gongpha/again-with-err-macro!-animation_tree_node

Check AnimationNode to update properties
Rémi Verschelde 4 年之前
父節點
當前提交
a851b72354
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/animation/animation_tree.cpp

+ 1 - 0
scene/animation/animation_tree.cpp

@@ -1337,6 +1337,7 @@ void AnimationTree::_tree_changed() {
 }
 
 void AnimationTree::_update_properties_for_node(const String &p_base_path, Ref<AnimationNode> node) {
+	ERR_FAIL_COND(node.is_null());
 	if (!property_parent_map.has(p_base_path)) {
 		property_parent_map[p_base_path] = HashMap<StringName, StringName>();
 	}