From 7cf7e6aa95e29af8718bfde04f42edf22b3e626f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Sat, 26 Apr 2025 20:10:44 +0300 Subject: [PATCH] Fix `AnimationNodeBlendTree` crash on `Open Editor` button press. --- editor/plugins/animation_blend_tree_editor_plugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/plugins/animation_blend_tree_editor_plugin.cpp b/editor/plugins/animation_blend_tree_editor_plugin.cpp index add71c668a..35c440685f 100644 --- a/editor/plugins/animation_blend_tree_editor_plugin.cpp +++ b/editor/plugins/animation_blend_tree_editor_plugin.cpp @@ -1024,6 +1024,11 @@ void AnimationNodeBlendTreeEditor::_scroll_changed(const Vector2 &p_scroll) { if (updating) { return; } + + if (blend_tree.is_null()) { + return; + } + updating = true; blend_tree->set_graph_offset(p_scroll / EDSCALE); updating = false;