Fixes comparing against render filename

Fixes comparison against AOV pattern match to produce correct "review" flags of the "beauty" pass, for proper generation of review burnin and thumbnail.
This commit is contained in:
Allan Ihsan 2022-03-18 17:23:26 +03:00
parent 5e2b275195
commit e7c5aa16df

View file

@ -448,7 +448,11 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
preview = False
if app in self.aov_filter.keys():
for aov_pattern in self.aov_filter[app]:
if re.match(aov_pattern, aov):
# Matching against the AOV pattern in the render files
# In order to match the AOV name, we must compare against the render filename string
# We are grabbing the render filename string from the collection that we have grabbed from expected files (exp_files)
render_file_name = os.path.basename(col[0])
if re.match(aov_pattern, render_file_name):
preview = True
break