Fix (unreported) missing expander code for new liboverride data.

Recent change to liboverride data model (6a86dd5f34) forgot to add the
new 'RNA item ID pointers references' to the expander code (readfile
area).

Note that this was essentially harmless, as these IDs are expected to be
referenced by actual data (or liboverride reference pointer) as well,
they should never be the only ones pointing at a linked ID. But better
to do it properly nonetheless.
This commit is contained in:
Bastien Montagne
2023-08-11 14:43:05 +02:00
parent c5bd71b375
commit e46f3acfdf

View File

@@ -4079,6 +4079,13 @@ static void expand_id(BlendExpander *expander, ID *id)
if (id->override_library) {
BLO_expand(expander, id->override_library->reference);
BLO_expand(expander, id->override_library->storage);
LISTBASE_FOREACH (IDOverrideLibraryProperty *, op, &id->override_library->properties) {
LISTBASE_FOREACH (IDOverrideLibraryPropertyOperation *, opop, &op->operations) {
BLO_expand(expander, opop->subitem_reference_id);
BLO_expand(expander, opop->subitem_local_id);
}
}
}
AnimData *adt = BKE_animdata_from_id(id);