diff --git a/DONORS.md b/DONORS.md index 33a68650d92..f7026d94703 100644 --- a/DONORS.md +++ b/DONORS.md @@ -13,8 +13,6 @@ generous deed immortalized in the next stable release of Godot Engine. ## Platinum sponsors Gamblify - Heroic Labs - Spiffcode ## Gold sponsors diff --git a/SConstruct b/SConstruct index da20169f256..5a45c9804bc 100644 --- a/SConstruct +++ b/SConstruct @@ -147,7 +147,7 @@ opts.Add( ) opts.Add(BoolVariable("disable_3d", "Disable 3D nodes for a smaller executable", False)) opts.Add(BoolVariable("disable_advanced_gui", "Disable advanced GUI nodes and behaviors", False)) -opts.Add(BoolVariable("no_editor_splash", "Don't use the custom splash screen for the editor", False)) +opts.Add(BoolVariable("no_editor_splash", "Don't use the custom splash screen for the editor", True)) opts.Add("system_certs_path", "Use this path as SSL certificates default for editor (for package maintainers)", "") opts.Add(BoolVariable("use_precise_math_checks", "Math checks use very precise epsilon (debug option)", False)) @@ -318,6 +318,9 @@ if env_base["target"] == "debug": if env_base["use_precise_math_checks"]: env_base.Append(CPPDEFINES=["PRECISE_MATH_CHECKS"]) +if not env_base.File("#main/splash_editor.png").exists(): + # Force disabling editor splash if missing. + env_base["no_editor_splash"] = True if env_base["no_editor_splash"]: env_base.Append(CPPDEFINES=["NO_EDITOR_SPLASH"]) diff --git a/main/SCsub b/main/SCsub index 473c1574671..8ffff2e164f 100644 --- a/main/SCsub +++ b/main/SCsub @@ -23,10 +23,11 @@ env.add_source_files(env.main_sources, gensource) env.Depends("#main/splash.gen.h", "#main/splash.png") env.CommandNoCache("#main/splash.gen.h", "#main/splash.png", run_in_subprocess(main_builders.make_splash)) -env.Depends("#main/splash_editor.gen.h", "#main/splash_editor.png") -env.CommandNoCache( - "#main/splash_editor.gen.h", "#main/splash_editor.png", run_in_subprocess(main_builders.make_splash_editor) -) +if not env["no_editor_splash"]: + env.Depends("#main/splash_editor.gen.h", "#main/splash_editor.png") + env.CommandNoCache( + "#main/splash_editor.gen.h", "#main/splash_editor.png", run_in_subprocess(main_builders.make_splash_editor) + ) env.Depends("#main/app_icon.gen.h", "#main/app_icon.png") env.CommandNoCache("#main/app_icon.gen.h", "#main/app_icon.png", run_in_subprocess(main_builders.make_app_icon)) diff --git a/main/main.cpp b/main/main.cpp index bd0a72c4c38..6feeb9ec196 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -55,7 +55,6 @@ #include "main/main_timer_sync.h" #include "main/performance.h" #include "main/splash.gen.h" -#include "main/splash_editor.gen.h" #include "main/tests/test_main.h" #include "modules/register_module_types.h" #include "platform/register_platform_apis.h" @@ -79,6 +78,9 @@ #include "editor/editor_settings.h" #include "editor/progress_dialog.h" #include "editor/project_manager.h" +#ifndef NO_EDITOR_SPLASH +#include "main/splash_editor.gen.h" +#endif #endif /* Static members */ diff --git a/main/splash_editor.png b/main/splash_editor.png deleted file mode 100644 index 49af9fde225..00000000000 Binary files a/main/splash_editor.png and /dev/null differ