Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix issue of hierachical enumerators with multiselection
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed May 19, 2020
1 parent 5d045b7 commit 4363af5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pype/ftrack/lib/avalon_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,13 @@ def set_hierarchical_attribute(self, hier_attrs, sync_ids):

for item in values["data"]:
value = item["value"]
if value is None:
# WARNING It is not possible to propage enumerate hierachical
# attributes with multiselection 100% right. Unseting all values
# will cause inheritance from parent.
if (
value is None
or (isinstance(value, (tuple, list)) and not value)
):
continue
entity_id = item["entity_id"]
key = attribute_key_by_id[item["configuration_id"]]
Expand Down

0 comments on commit 4363af5

Please sign in to comment.