Browse Source

Delete the node in AnimationTreePlayer.remove_node

Haoyu Qiu 4 years ago
parent
commit
859922a5f0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/animation/animation_tree_player.cpp

+ 1 - 0
scene/animation/animation_tree_player.cpp

@@ -1314,6 +1314,7 @@ void AnimationTreePlayer::remove_node(const StringName &p_node) {
 		}
 	}
 
+	memdelete(node_map[p_node]);
 	node_map.erase(p_node);
 
 	_clear_cycle_test();