From 34be83851ec154f1c2eaf0d786f42d7f7b177273 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 23 Sep 2025 12:58:15 +0200 Subject: [PATCH] Ignore main scene UID error in editor --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index a86c6d5dc6..cb116d80b6 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -4148,7 +4148,7 @@ int Main::start() { const String main_scene = GLOBAL_GET("application/run/main_scene"); if (main_scene.begins_with("uid://")) { ResourceUID::ID id = ResourceUID::get_singleton()->text_to_id(main_scene); - if (!ResourceUID::get_singleton()->has_id(id) && !FileAccess::exists(ResourceUID::get_singleton()->get_cache_file())) { + if (!editor && !ResourceUID::get_singleton()->has_id(id) && !FileAccess::exists(ResourceUID::get_singleton()->get_cache_file())) { OS::get_singleton()->alert("Main scene's path could not be resolved from UID. Make sure the project is imported first. Aborting."); ERR_FAIL_V_MSG(EXIT_FAILURE, "Main scene's path could not be resolved from UID. Make sure the project is imported first. Aborting."); }