mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
hiero: fixing families exception for hierarchy
This commit is contained in:
parent
ec8e277e1d
commit
4687d00a17
1 changed files with 3 additions and 2 deletions
|
|
@ -30,14 +30,15 @@ class CollectHierarchy(pyblish.api.ContextPlugin):
|
|||
|
||||
# shot data dict
|
||||
shot_data = {}
|
||||
family = instance.data.get("family")
|
||||
family = instance.data["family"]
|
||||
families = instance.data["families"]
|
||||
|
||||
# filter out all unepropriate instances
|
||||
if not instance.data["publish"]:
|
||||
continue
|
||||
|
||||
# exclude other families then self.families with intersection
|
||||
if not set(self.families).intersection([family]):
|
||||
if not set(self.families).intersection(set(families + [family])):
|
||||
continue
|
||||
|
||||
# exclude if not masterLayer True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue