Restrict the condition when checking if a script is a template
This commit is contained in:
@ -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
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user