Merge pull request #393 from ynput/bugfix/hiero-precollect-product-name-fix

Hiero: Precollect instances variable fix
This commit is contained in:
Jakub Trllo 2024-04-12 10:47:34 +02:00 committed by GitHub
commit 2f71d44bf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,10 +92,6 @@ class PrecollectInstances(pyblish.api.ContextPlugin):
folder_path, folder_name = self._get_folder_data(tag_data)
product_name = tag_data.get("productName")
if product_name is None:
product_name = tag_data["subset"]
families = [str(f) for f in tag_data["families"]]
# TODO: remove backward compatibility
@ -293,7 +289,7 @@ class PrecollectInstances(pyblish.api.ContextPlugin):
label += " {}".format(product_name)
data.update({
"name": "{}_{}".format(folder_path, subset),
"name": "{}_{}".format(folder_path, product_name),
"label": label,
"productName": product_name,
"productType": product_type,