You've already forked godot
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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user