diff options
| author | yg2f | 2015-03-28 18:34:28 +0100 |
|---|---|---|
| committer | yg2f | 2015-03-28 18:34:28 +0100 |
| commit | 3c67e22c3d0028df31e060ea28fb9f96b9f65cdf (patch) | |
| tree | 9ecb02b43e619546133cd4dfeb270910c76bc4ce /scene/main/scene_main_loop.cpp | |
| parent | 7f8a0cddcfbd5744113de1826380310ad920360a (diff) | |
| download | godot-3c67e22c3d0028df31e060ea28fb9f96b9f65cdf.tar.gz godot-3c67e22c3d0028df31e060ea28fb9f96b9f65cdf.tar.zst godot-3c67e22c3d0028df31e060ea28fb9f96b9f65cdf.zip | |
add : bool Object.is_queued_for_deletion()
`object.is_queued_for_deletion()` return true if the object was
`object.queue_free()` or `SceneTree.queue_delete(object)`.
Diffstat (limited to 'scene/main/scene_main_loop.cpp')
| -rw-r--r-- | scene/main/scene_main_loop.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/scene_main_loop.cpp b/scene/main/scene_main_loop.cpp index ed3e41935..8e2dc9328 100644 --- a/scene/main/scene_main_loop.cpp +++ b/scene/main/scene_main_loop.cpp @@ -850,6 +850,7 @@ void SceneTree::queue_delete(Object *p_object) { _THREAD_SAFE_METHOD_ ERR_FAIL_NULL(p_object); + p_object->_is_queued_for_deletion = true; delete_queue.push_back(p_object->get_instance_ID()); } |
