Merge pull request #15929 from poke1024/fix15902

Revert 67ae443c56
This commit is contained in:
Rémi Verschelde 2018-01-21 11:08:34 +01:00 committed by GitHub
commit fa569210f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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