diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-08-02 20:28:10 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-08-02 20:28:10 -0300 |
commit | cbee679bd78c1b3317db1ea4e349f278576304a1 (patch) | |
tree | 862e1d13df996bd0d06fc2e97073e74ea78ec284 /scene/main/node.cpp | |
parent | 59961c99144523d7cc2881a4abe6d0a319a975df (diff) |
live debug fixes
removing node in live debugging fixed
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r-- | scene/main/node.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 5e0faae0a2..8336ce35f6 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -224,6 +224,15 @@ void Node::_propagate_exit_tree() { data.tree->live_scene_edit_cache.erase(E); } } + + Map<Node*,Map<ObjectID,Node*> >::Element *F=data.tree->live_edit_remove_list.find(this); + if (F) { + for (Map<ObjectID,Node*>::Element*G=F->get().front();G;G=G->next()) { + + memdelete(G->get()); + } + data.tree->live_edit_remove_list.erase(F); + } } #endif data.blocked++; |