mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Use plugin attributes for legacy.
This commit is contained in:
parent
7c21e2da7f
commit
6e25e483be
2 changed files with 2 additions and 3 deletions
|
|
@ -21,6 +21,4 @@ class CreateReview(avalon.maya.Creator):
|
|||
for key, value in animation_data.items():
|
||||
data[key] = value
|
||||
|
||||
data["legacy"] = True
|
||||
|
||||
self.data = data
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ class CollectReview(pyblish.api.InstancePlugin):
|
|||
order = pyblish.api.CollectorOrder + 0.3
|
||||
label = 'Collect Review Data'
|
||||
families = ["review"]
|
||||
legacy = True
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
|
|
@ -69,7 +70,7 @@ class CollectReview(pyblish.api.InstancePlugin):
|
|||
instance.data['remove'] = True
|
||||
i += 1
|
||||
else:
|
||||
if instance.data.get("legacy", True):
|
||||
if self.legacy:
|
||||
instance.data['subset'] = task + 'Review'
|
||||
else:
|
||||
subset = "{}{}{}".format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue