2
0
Эх сурвалжийг харах

Avoid a crash when an node of the AnimationTree is invalid

fabriceci 4 жил өмнө
parent
commit
f871f13340

+ 1 - 0
editor/plugins/animation_blend_tree_editor_plugin.cpp

@@ -126,6 +126,7 @@ void AnimationNodeBlendTreeEditor::_update_graph() {
 		graph->add_child(node);
 		graph->add_child(node);
 
 
 		Ref<AnimationNode> agnode = blend_tree->get_node(E);
 		Ref<AnimationNode> agnode = blend_tree->get_node(E);
+		ERR_CONTINUE(!agnode.is_valid());
 
 
 		node->set_position_offset(blend_tree->get_node_position(E) * EDSCALE);
 		node->set_position_offset(blend_tree->get_node_position(E) * EDSCALE);