Browse Source

Merge pull request #22311 from Xrayez/fix-22037

Fix blend tree editor updating invalid blend tree node graph
Juan Linietsky 7 năm trước cách đây
mục cha
commit
755249f7d9
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  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()) {
 		blend_tree = p_node;
-	} else {
-		blend_tree.unref();
 	}
 
 	if (blend_tree.is_null()) {