Skip to content

Commit 13dcb1f

Browse files
committed
Merge pull request #110810 from KoBeWi/mail_(MAin_faIL)
Ignore main scene UID error in editor
2 parents 2b79cb6 + 34be838 commit 13dcb1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4148,7 +4148,7 @@ int Main::start() {
41484148
const String main_scene = GLOBAL_GET("application/run/main_scene");
41494149
if (main_scene.begins_with("uid://")) {
41504150
ResourceUID::ID id = ResourceUID::get_singleton()->text_to_id(main_scene);
4151-
if (!ResourceUID::get_singleton()->has_id(id) && !FileAccess::exists(ResourceUID::get_singleton()->get_cache_file())) {
4151+
if (!editor && !ResourceUID::get_singleton()->has_id(id) && !FileAccess::exists(ResourceUID::get_singleton()->get_cache_file())) {
41524152
OS::get_singleton()->alert("Main scene's path could not be resolved from UID. Make sure the project is imported first. Aborting.");
41534153
ERR_FAIL_V_MSG(EXIT_FAILURE, "Main scene's path could not be resolved from UID. Make sure the project is imported first. Aborting.");
41544154
}

0 commit comments

Comments
 (0)