1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-29 16:16:38 +00:00

Fix external resource IDs being lost for default properties

This commit is contained in:
Mikael Hermansson
2025-07-30 13:01:37 +02:00
parent 2d113cc224
commit d0826b0bfe
3 changed files with 16 additions and 12 deletions

View File

@@ -157,10 +157,6 @@ Error ResourceLoaderText::_parse_ext_resource(VariantParser::Stream *p_stream, R
}
}
} else {
#ifdef TOOLS_ENABLED
//remember ID for saving
res->set_id_for_path(local_path, id);
#endif
r_res = res;
}
} else {
@@ -486,6 +482,13 @@ Error ResourceLoaderText::load() {
resource_current++;
}
#ifdef TOOLS_ENABLED
for (const KeyValue<String, ExtResource> &E : ext_resources) {
// Remember ID for saving.
Resource::set_resource_id_for_path(local_path, E.value.path, E.key);
}
#endif
//these are the ones that count
resources_total -= resource_current;
resource_current = 0;