Wait a frame for instance cleanup
This commit is contained in:
parent
82b4362859
commit
9ef4c9243a
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@ var config_newlines_override: bool
|
|||
var config_newlines_sizelimit: int
|
||||
|
||||
# +++ module +++
|
||||
func _cleanup() -> void: _schedule()
|
||||
func _cleanup() -> void:
|
||||
_schedule()
|
||||
await get_tree().process_frame()
|
||||
|
||||
func _schedule() -> void:
|
||||
for instance in instances:
|
||||
|
|
Loading…
Reference in a new issue