From ad4ecf354027ea2e869c11f8b6a57cb5f2386502 Mon Sep 17 00:00:00 2001 From: Mouring Date: Sat, 9 Apr 2022 21:26:44 -0500 Subject: [PATCH] migrate from free() to queue_free() because fade_out() locks the object until finished. --- addons/scene_manager/SceneManager.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/scene_manager/SceneManager.gd b/addons/scene_manager/SceneManager.gd index 30a59e2..c738101 100644 --- a/addons/scene_manager/SceneManager.gd +++ b/addons/scene_manager/SceneManager.gd @@ -165,7 +165,7 @@ func _reload_scene() -> void: func _replace_scene(path: String) -> void: - _current_scene.free() + _current_scene.queue_free() emit_signal("scene_unloaded") var following_scene = ResourceLoader.load(path) _current_scene = following_scene.instance()