mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
OP-6567 - fix setting of version to workfile instance (#5452)
If there are multiple instances of renderlayer published, previous logic resulted in unpredictable rewrite of instance family to 'workfile'
This commit is contained in:
parent
bdc42761bd
commit
328c3d9c7f
1 changed files with 3 additions and 3 deletions
|
|
@ -304,9 +304,9 @@ class CollectMayaRender(pyblish.api.InstancePlugin):
|
|||
|
||||
if self.sync_workfile_version:
|
||||
data["version"] = context.data["version"]
|
||||
for instance in context:
|
||||
if instance.data['family'] == "workfile":
|
||||
instance.data["version"] = context.data["version"]
|
||||
for _instance in context:
|
||||
if _instance.data['family'] == "workfile":
|
||||
_instance.data["version"] = context.data["version"]
|
||||
|
||||
# Define nice label
|
||||
label = "{0} ({1})".format(layer_name, instance.data["asset"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue