summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-19 20:46:33 +0200
committerGitHub <noreply@github.com>2021-08-19 20:46:33 +0200
commitfb8487e011fbf0310bd40cf339a58d5c60c9d259 (patch)
treeef2f3d0419e43020e554708e992da37923fc5685 /editor/plugins
parent93dac1c7db0837eba82831e6391a022d454b67f9 (diff)
parentf871f13340a2e1691674478570a62b69a5bf55a0 (diff)
Merge pull request #51890 from fabriceci/crash-animation-blend-tree
Fix 51889 that cause a crash when you click on an AnimationTree that contains an invalid node
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/animation_blend_tree_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/animation_blend_tree_editor_plugin.cpp b/editor/plugins/animation_blend_tree_editor_plugin.cpp
index 69206daea8..030d90eeca 100644
--- a/editor/plugins/animation_blend_tree_editor_plugin.cpp
+++ b/editor/plugins/animation_blend_tree_editor_plugin.cpp
@@ -126,6 +126,7 @@ void AnimationNodeBlendTreeEditor::_update_graph() {
graph->add_child(node);
Ref<AnimationNode> agnode = blend_tree->get_node(E);
+ ERR_CONTINUE(!agnode.is_valid());
node->set_position_offset(blend_tree->get_node_position(E) * EDSCALE);