mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 04:34:39 +00:00
GDScript: More reliable check if loading a template.
Prevents showing some useless parse errors in the console.
This commit is contained in:
parent
a518ed105c
commit
f61e8695c9
1 changed files with 1 additions and 1 deletions
|
|
@ -616,7 +616,7 @@ Error GDScript::reload(bool p_keep_state) {
|
||||||
if (basedir != "")
|
if (basedir != "")
|
||||||
basedir = basedir.get_base_dir();
|
basedir = basedir.get_base_dir();
|
||||||
|
|
||||||
if (basedir != "" && basedir.find("res://") == -1 && basedir.find("user://") == -1) {
|
if (source.find("%BASE%") != -1) {
|
||||||
//loading a template, don't parse
|
//loading a template, don't parse
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue