Delete the node in AnimationTreePlayer.remove_node

This commit is contained in:
Haoyu Qiu 2021-08-03 00:12:04 +08:00
parent 7a7de3ce12
commit 859922a5f0

View file

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