Skip to content

Commit

Permalink
Ignore ERR_FILE_CANT_OPEN error when loading scene
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Apr 5, 2024
1 parent 655e93d commit f0cbd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/variant/variant_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream,
Error err = p_res_parser->ext_func(p_res_parser->userdata, p_stream, res, line, r_err_str);
if (err) {
// If the file is missing, the error can be ignored.
if (err != ERR_FILE_NOT_FOUND && err != ERR_CANT_OPEN) {
if (err != ERR_FILE_NOT_FOUND && err != ERR_CANT_OPEN && err != ERR_FILE_CANT_OPEN) {
return err;
}
}
Expand Down

0 comments on commit f0cbd38

Please sign in to comment.