1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Merge pull request #112193 from KnifeXRage/autoload_with_uids

Autoloads with UIDs
This commit is contained in:
Thaddeus Crews
2025-11-10 08:20:12 -06:00
3 changed files with 9 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ void init_autoloads() {
// Cache the scene reference before loading it (for cyclic references)
Ref<PackedScene> scn;
scn.instantiate();
scn->set_path(info.path);
scn->set_path(ResourceUID::ensure_path(info.path));
scn->reload_from_file();
ERR_CONTINUE_MSG(scn.is_null(), vformat("Failed to instantiate an autoload, can't load from path: %s.", info.path));