From 55fb9cd202ef516460e24ac65165eaebb46be912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manolo=20Cant=C3=B3n?= Date: Mon, 1 Jul 2024 18:03:26 +0200 Subject: [PATCH] Fix SceneManager in first scene script and check with Godot 4.2 --- addons/scene_manager/test/change_scene/first_scene.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/scene_manager/test/change_scene/first_scene.gd b/addons/scene_manager/test/change_scene/first_scene.gd index 366a7ca..6e1b3cf 100644 --- a/addons/scene_manager/test/change_scene/first_scene.gd +++ b/addons/scene_manager/test/change_scene/first_scene.gd @@ -44,8 +44,8 @@ func _on_button_pressed(use_packed_scene: bool) -> void: if test_append_dependency: properties["loading_dependency"] = [ - SceneManager.append_dependency("res://addons/scene_manager/test/custom_loading_screen/loading_screen.gd"), - SceneManager.append_dependency("res://addons/scene_manager/test/change_scene/first_scene.tscn"), + get_node("/root/SceneManager").append_dependency("res://addons/scene_manager/test/custom_loading_screen/loading_screen.gd"), + get_node("/root/SceneManager").append_dependency("res://addons/scene_manager/test/change_scene/first_scene.tscn"), ] var loading_properties := {}