You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user