Check AnimationNode to update properties

(cherry picked from commit 981ca8045f)
This commit is contained in:
Kongfa Waroros 2021-03-17 18:33:29 +07:00 committed by Rémi Verschelde
parent 0b541af8a1
commit e8d0089901
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1403,7 +1403,7 @@ void AnimationTree::_tree_changed() {
} }
void AnimationTree::_update_properties_for_node(const String &p_base_path, Ref<AnimationNode> node) { 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)) { if (!property_parent_map.has(p_base_path)) {
property_parent_map[p_base_path] = HashMap<StringName, StringName>(); property_parent_map[p_base_path] = HashMap<StringName, StringName>();
} }