浏览代码

Restrict the condition when checking if a script is a template

fabriceci 3 年之前
父节点
当前提交
dae97909bd
共有 1 个文件被更改,包括 0 次插入4 次删除
  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())) {
 		return OK;
 	}
-#else
-	if (source.contains("_BASE_")) {
-		return OK;
-	}
 #endif
 
 	{