You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Avoid a crash when an node of the AnimationTree is invalid
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user