Merge pull request #15851 from poke1024/preload-warnings

Suppress errors on autocompletion for preload()
This commit is contained in:
Juan Linietsky 2018-01-18 19:15:05 -03:00 committed by GitHub
commit 7369b0075e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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 {
} else if (FileAccess::exists(path)) {
res = ResourceLoader::load(path);
}
if (!res.is_valid()) {