Fix (unreported) liboverride: incomplete hierarchy when root is not object/collection.

We do not (currently) consider other ID types as 'end points' justifying
to create an override hierarchy, however if the 'root' ID (i.e. the ID
the user selected as base to create the override) is not an object or
collection, we still want to check all of its dependencies.

This fixes e.g. if a material depends on another Empty object, and user
tries to hierarchy-override that material, its Empty dependency not
being overridden.
This commit is contained in:
Bastien Montagne 2022-07-05 12:45:54 +02:00
parent 598a26fd8a
commit ce1d023667
Notes: blender-bot 2023-02-14 19:45:25 +01:00
Referenced by issue #100567, Linked Mapping node Location drived value not working in Blender 3.2.2
1 changed files with 0 additions and 5 deletions

View File

@ -937,11 +937,6 @@ static void lib_override_linked_group_tag(LibOverrideGroupTagData *data)
id_root->tag |= data->tag;
}
/* Only objects and groups are currently considered as 'keys' in override hierarchies. */
if (!ELEM(GS(id_root->name), ID_OB, ID_GR)) {
return;
}
/* Tag all collections and objects recursively. */
lib_override_linked_group_tag_recursive(data);