From e343610b0e3dae66939efc72678759f7b66d6a35 Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Fri, 21 Sep 2018 12:48:26 +0300 Subject: [PATCH] Fix blend tree editor updating invalid blend tree node graph Editing unreferenced blend tree caused SIGSEGV when updating node graph. Fixes #22037 --- editor/plugins/animation_blend_tree_editor_plugin.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/editor/plugins/animation_blend_tree_editor_plugin.cpp b/editor/plugins/animation_blend_tree_editor_plugin.cpp index 19d5243776d..6121278d4a5 100644 --- a/editor/plugins/animation_blend_tree_editor_plugin.cpp +++ b/editor/plugins/animation_blend_tree_editor_plugin.cpp @@ -846,8 +846,6 @@ void AnimationNodeBlendTreeEditor::edit(const Ref &p_node) { if (p_node.is_valid()) { blend_tree = p_node; - } else { - blend_tree.unref(); } if (blend_tree.is_null()) {