From f0cbd388dce53b9d8d058ea1ac8e342a08ff6b48 Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 5 Apr 2024 17:49:11 +0200 Subject: [PATCH] Ignore ERR_FILE_CANT_OPEN error when loading scene --- core/variant/variant_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/variant/variant_parser.cpp b/core/variant/variant_parser.cpp index 46c450d9f86..fa91758ffff 100644 --- a/core/variant/variant_parser.cpp +++ b/core/variant/variant_parser.cpp @@ -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; } }