Ignore ERR_FILE_CANT_OPEN error when loading scene
(cherry picked from commit f0cbd388dc
)
This commit is contained in:
parent
dc865a1ec6
commit
bfc72801fd
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user