Merge pull request #85159 from KoBeWi/404_strikes_back

Don't abort loading when `ext_resource` is missing
This commit is contained in:
Rémi Verschelde 2023-12-12 00:18:58 +01:00
commit ea15b4ad44
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1026,7 +1026,10 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream,
Ref<Resource> res;
Error err = p_res_parser->ext_func(p_res_parser->userdata, p_stream, res, line, r_err_str);
if (err) {
return err;
// If the file is missing, the error can be ignored.
if (err != ERR_FILE_NOT_FOUND && err != ERR_CANT_OPEN) {
return err;
}
}
value = res;