nuke | general: removing redundant review representation

This commit is contained in:
Jakub Jezek 2022-04-01 11:05:15 +02:00
parent d4d9b91b2b
commit bc0054cd88
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -509,8 +509,8 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
most cases, but if not - we create representation from each of them.
Arguments:
instance (pyblish.plugin.Instance): instance for which we are
setting representations
instance (dict): instance data for which we are
setting representations
exp_files (list): list of expected files
Returns:
@ -528,6 +528,14 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
# preview video rendering
for app in self.aov_filter.keys():
if os.environ.get("AVALON_APP", "") == app:
# no need to add review if baking in nuke present
if (
app == "nuke"
and instance.get("bakingNukeScripts")
):
break
# iteratre all aov filters
for aov in self.aov_filter[app]:
if re.match(
aov,