Skip to content

Commit

Permalink
Variant has to be also changed, not only product name
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubjezek001 committed Nov 12, 2024
1 parent 447c2b8 commit 299a05f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/ayon_hiero/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ def _convert_to_tag_data(self):
f"{new_clip_name}{data_product_name}", [])

clip_product_name = self.product_name
variant = self.variant

# in case track name and product name is the same then add
if self.variant == self.track_name:
Expand All @@ -947,15 +948,17 @@ def _convert_to_tag_data(self):
if clip_product_name in data_product_name:
clip_product_name = (
f"{clip_product_name}{self.track_index}")
variant = f"{variant}{self.track_index}"

# in case track clip product name had been already used
# then add product name with clip index
if clip_product_name in used_names_list:
clip_product_name = (
f"{clip_product_name}{self.rename_index}")
variant = f"{variant}{self.rename_index}"

_distrib_data["productName"] = clip_product_name
_distrib_data["variant"] = self.variant
_distrib_data["variant"] = variant
# assign data to return hierarchy data to tag
tag_instance_data = _distrib_data

Expand Down

0 comments on commit 299a05f

Please sign in to comment.