Browse Source

Restrict the condition when checking if a script is a template

fabriceci 3 years ago
parent
commit
dae97909bd
1 changed files with 0 additions and 4 deletions
  1. 0 4
      modules/gdscript/gdscript.cpp

+ 0 - 4
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())) {
 	if (basedir.begins_with(EditorSettings::get_singleton()->get_project_script_templates_dir())) {
 		return OK;
 		return OK;
 	}
 	}
-#else
-	if (source.contains("_BASE_")) {
-		return OK;
-	}
 #endif
 #endif
 
 
 	{
 	{