Wait a frame for instance cleanup

This commit is contained in:
JeremyStar™ 2024-04-12 17:06:09 +02:00
parent 82b4362859
commit 9ef4c9243a
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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: