Merge pull request #51193 from timothyqiu/atp-remove

memdelete the node in AnimationTreePlayer.remove_node
This commit is contained in:
Rémi Verschelde 2021-08-03 08:08:22 +02:00 committed by GitHub
commit 08b67aabb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();