From f871f13340a2e1691674478570a62b69a5bf55a0 Mon Sep 17 00:00:00 2001 From: fabriceci Date: Thu, 19 Aug 2021 16:01:08 +0200 Subject: Avoid a crash when an node of the AnimationTree is invalid --- editor/plugins/animation_blend_tree_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) 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 agnode = blend_tree->get_node(E); + ERR_CONTINUE(!agnode.is_valid()); node->set_position_offset(blend_tree->get_node_position(E) * EDSCALE); -- cgit v1.2.3