aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_parser.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2018-01-21 11:08:34 +0100
committerGitHub2018-01-21 11:08:34 +0100
commitfa569210f5ef316177724169a42d2b82f4ab03d9 (patch)
tree7fe98cca930335a83b6725298e92a1648fc4204d /modules/gdscript/gdscript_parser.cpp
parentc58891ff4ce9559fb1413d34159d3fb039999402 (diff)
parentec98e0b715ae7fa7120638107a39544362428177 (diff)
downloadgodot-fa569210f5ef316177724169a42d2b82f4ab03d9.tar.gz
godot-fa569210f5ef316177724169a42d2b82f4ab03d9.tar.zst
godot-fa569210f5ef316177724169a42d2b82f4ab03d9.zip
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r--modules/gdscript/gdscript_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index 75fb7e15c..c67214638 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -460,7 +460,7 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s
//this can be too slow for just validating code
if (for_completion && ScriptCodeCompletionCache::get_singleton()) {
res = ScriptCodeCompletionCache::get_singleton()->get_cached_resource(path);
- } else if (FileAccess::exists(path)) {
+ } else { // essential; see issue 15902
res = ResourceLoader::load(path);
}
if (!res.is_valid()) {