mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 14:41:07 +00:00
Don't abort loading when ext_resource is missing
(cherry picked from commit 1de0415118)
This commit is contained in:
parent
28abd259f7
commit
dc865a1ec6
1 changed files with 4 additions and 1 deletions
|
|
@ -1026,8 +1026,11 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream,
|
||||||
Ref<Resource> res;
|
Ref<Resource> res;
|
||||||
Error err = p_res_parser->ext_func(p_res_parser->userdata, p_stream, res, line, r_err_str);
|
Error err = p_res_parser->ext_func(p_res_parser->userdata, p_stream, res, line, r_err_str);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
// If the file is missing, the error can be ignored.
|
||||||
|
if (err != ERR_FILE_NOT_FOUND && err != ERR_CANT_OPEN) {
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
value = res;
|
value = res;
|
||||||
} else if (p_res_parser && id == "SubResource" && p_res_parser->sub_func) {
|
} else if (p_res_parser && id == "SubResource" && p_res_parser->sub_func) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue