Skip to content

Commit

Permalink
Suppress errors on autocompletion for preload()
Browse files Browse the repository at this point in the history
  • Loading branch information
poke1024 committed Jan 18, 2018
1 parent 9f479f0 commit 67ae443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdscript/gdscript_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 67ae443

Please sign in to comment.