1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

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)`.
This commit is contained in:
yg2f
2015-03-28 18:34:28 +01:00
parent 7f8a0cddcf
commit 3c67e22c3d
3 changed files with 11 additions and 1 deletions

View File

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