Browse Source

Merge pull request #22311 from Xrayez/fix-22037

Fix blend tree editor updating invalid blend tree node graph
Juan Linietsky 7 years ago
parent
commit
755249f7d9
1 changed files with 0 additions and 2 deletions
  1. 0 2
      editor/plugins/animation_blend_tree_editor_plugin.cpp

+ 0 - 2
editor/plugins/animation_blend_tree_editor_plugin.cpp

@@ -833,8 +833,6 @@ void AnimationNodeBlendTreeEditor::edit(const Ref<AnimationNode> &p_node) {
 
 
 	if (p_node.is_valid()) {
 	if (p_node.is_valid()) {
 		blend_tree = p_node;
 		blend_tree = p_node;
-	} else {
-		blend_tree.unref();
 	}
 	}
 
 
 	if (blend_tree.is_null()) {
 	if (blend_tree.is_null()) {