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

Improve UID support for main scene

This commit is contained in:
kobewi
2024-12-14 20:01:44 +01:00
parent b9437c3938
commit 62d4928e86
3 changed files with 14 additions and 14 deletions

View File

@@ -3817,8 +3817,8 @@ int Main::start() {
#endif // TOOLS_ENABLED
if (script.is_empty() && game_path.is_empty() && String(GLOBAL_GET("application/run/main_scene")) != "") {
game_path = GLOBAL_GET("application/run/main_scene");
if (script.is_empty() && game_path.is_empty()) {
game_path = ResourceUID::ensure_path(GLOBAL_GET("application/run/main_scene"));
}
#ifdef TOOLS_ENABLED