Skip to content

Commit

Permalink
Merge pull request pyblish#53 from pypeclub/hotfix/families_collectin…
Browse files Browse the repository at this point in the history
…g_fix

hotfix/families collecting fix
  • Loading branch information
mkolar authored May 4, 2020
2 parents 0f38004 + 482987e commit 18ce962
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyblish_lite/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ def collect_families_from_instances(instances, only_active=False):
if instance.data.get("publish") is False:
continue
family = instance.data.get("family")
families = [family] if family else []
families += instance.data.get("families", [])
if family:
all_families.add(family)

families = instance.data.get("families") or tuple()
for family in families:
all_families.add(family)

Expand Down

0 comments on commit 18ce962

Please sign in to comment.