diff options
author | yg2f <yoann@terminajones.com> | 2015-03-28 18:34:28 +0100 |
---|---|---|
committer | yg2f <yoann@terminajones.com> | 2015-03-28 18:34:28 +0100 |
commit | 3c67e22c3d0028df31e060ea28fb9f96b9f65cdf (patch) | |
tree | 9ecb02b43e619546133cd4dfeb270910c76bc4ce /scene | |
parent | 7f8a0cddcfbd5744113de1826380310ad920360a (diff) |
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')
-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 ed3e419359..8e2dc93288 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()); } |