You've already forked godot
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user