Selaa lähdekoodia

Check AnimationNode to update properties

(cherry picked from commit 981ca8045f4710714ecc9b752d2f519dfc71d9e0)
Kongfa Waroros 4 vuotta sitten
vanhempi
commit
e8d0089901
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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>();
 	}