summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-17 13:05:25 +0100
committerGitHub <noreply@github.com>2021-03-17 13:05:25 +0100
commita851b72354c67af2693f02e636b75ffb67df66fd (patch)
tree1f50671c9032b2c9f3d9d33d24b2f59e9eb0f3bf /scene/animation
parent3ef0e5a9bca4399c25b0cd3e174bbbcdb7df8d5e (diff)
parent981ca8045f4710714ecc9b752d2f519dfc71d9e0 (diff)
Merge pull request #47091 from gongpha/again-with-err-macro!-animation_tree_node
Check AnimationNode to update properties
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_tree.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index 24c73a6b1b..4b4d3943c9 100644
--- a/scene/animation/animation_tree.cpp
+++ b/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>();
}