diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2018-09-21 12:48:26 +0300 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2018-09-21 12:48:26 +0300 |
commit | e343610b0e3dae66939efc72678759f7b66d6a35 (patch) | |
tree | 29f248a89de7682f75886528c7dacde7924ed700 | |
parent | 534b7ef292fa4686ae0fd7d34b6dcdcbe14045ea (diff) |
Fix blend tree editor updating invalid blend tree node graph
Editing unreferenced blend tree caused SIGSEGV when updating node graph.
Fixes #22037
-rw-r--r-- | editor/plugins/animation_blend_tree_editor_plugin.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/editor/plugins/animation_blend_tree_editor_plugin.cpp b/editor/plugins/animation_blend_tree_editor_plugin.cpp index 19d5243776..6121278d4a 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<AnimationNode> &p_node) { if (p_node.is_valid()) { blend_tree = p_node; - } else { - blend_tree.unref(); } if (blend_tree.is_null()) { |