Explorar o código

Check AnimationNode to update properties

(cherry picked from commit 981ca8045f4710714ecc9b752d2f519dfc71d9e0)
Kongfa Waroros %!s(int64=4) %!d(string=hai) anos
pai
achega
e8d0089901
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/animation/animation_tree.cpp

+ 1 - 1
scene/animation/animation_tree.cpp

@@ -1403,7 +1403,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>();
 	}