Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Make it specific to redshift
Browse files Browse the repository at this point in the history
  • Loading branch information
tokejepsen committed Apr 7, 2024
1 parent ba38d3e commit 837dacd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions openpype/pipeline/farm/pyblish_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,10 +632,13 @@ def _create_instances_for_aov(instance, skeleton, aov_filter, additional_data,
# happens with Redshift that forces Cryptomatte renders to be separate
# files even when the rest of the AOVs are merged into a single EXR.
# There might be an edge case where the main instance has cryptomatte
# in the name even though its a multipart EXR.
if (instance.data.get("multipartExr") and
"cryptomatte" not in render_file_name.lower()):
log.debug("Adding preview tag because its multipartExr")
# in the name even though it's a multipart EXR.
if (
instance.data.get("multipartExr") and
instance.data.get("renderer", "") == "redshift" and
"cryptomatte" not in render_file_name.lower()
):
log.debug("Adding preview tag because it's multipartExr")
preview = True
else:
new_instance["multipartExr"] = False
Expand Down

0 comments on commit 837dacd

Please sign in to comment.