From efaba30116ebe9851d74d5bc20d5443730d23ad7 Mon Sep 17 00:00:00 2001
From: Programneer <kacperbogangibas@gmail.com>
Date: Sun, 12 May 2024 08:50:41 +0200
Subject: Don't define NO_EDITOR_SPLASH in export templates

---
 SConstruct | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

(limited to 'SConstruct')

diff --git a/SConstruct b/SConstruct
index cfedcc84ed..512c35f207 100644
--- a/SConstruct
+++ b/SConstruct
@@ -492,14 +492,15 @@ if methods.get_cmdline_bool("fast_unsafe", env.dev_build):
 if env["use_precise_math_checks"]:
     env.Append(CPPDEFINES=["PRECISE_MATH_CHECKS"])
 
-if env.editor_build and env["engine_update_check"]:
-    env.Append(CPPDEFINES=["ENGINE_UPDATE_CHECK_ENABLED"])
-
-if not env.File("#main/splash_editor.png").exists():
-    # Force disabling editor splash if missing.
-    env["no_editor_splash"] = True
-if env["no_editor_splash"]:
-    env.Append(CPPDEFINES=["NO_EDITOR_SPLASH"])
+if env.editor_build:
+    if env["engine_update_check"]:
+        env.Append(CPPDEFINES=["ENGINE_UPDATE_CHECK_ENABLED"])
+
+    if not env.File("#main/splash_editor.png").exists():
+        # Force disabling editor splash if missing.
+        env["no_editor_splash"] = True
+    if env["no_editor_splash"]:
+        env.Append(CPPDEFINES=["NO_EDITOR_SPLASH"])
 
 if not env["deprecated"]:
     env.Append(CPPDEFINES=["DISABLE_DEPRECATED"])
-- 
cgit v1.2.3