Restrict the condition when checking if a script is a template

This commit is contained in:
fabriceci 2022-03-12 11:48:03 +01:00
parent d5076439e4
commit dae97909bd

View file

@ -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
{