From dae97909bdbe1064e279165b60ea509f3b3ea27c Mon Sep 17 00:00:00 2001 From: fabriceci Date: Sat, 12 Mar 2022 11:48:03 +0100 Subject: [PATCH] Restrict the condition when checking if a script is a template --- modules/gdscript/gdscript.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index c12c1a43a35..d415684d10d 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -827,10 +827,6 @@ Error GDScript::reload(bool p_keep_state) { if (basedir.begins_with(EditorSettings::get_singleton()->get_project_script_templates_dir())) { return OK; } -#else - if (source.contains("_BASE_")) { - return OK; - } #endif {