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

Commit

Permalink
Enforce multipartExr to false instead of inheriting
Browse files Browse the repository at this point in the history
  • Loading branch information
tokejepsen committed Mar 9, 2024
1 parent e83bd72 commit 4a5525a
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 @@ -620,6 +620,11 @@ def _create_instances_for_aov(instance, skeleton, aov_filter, additional_data,
aov_patterns = aov_filter

preview = match_aov_pattern(app, aov_patterns, render_file_name)

new_instance = deepcopy(skeleton)
new_instance["subset"] = subset_name
new_instance["subsetGroup"] = group_name

# toggle preview on if multipart is on
# Because we cant query the multipartExr data member of each AOV we'll
# need to have hardcoded rule of excluding any renders with
Expand All @@ -632,10 +637,8 @@ def _create_instances_for_aov(instance, skeleton, aov_filter, additional_data,
"cryptomatte" not in render_file_name.lower()):
log.debug("Adding preview tag because its multipartExr")
preview = True

new_instance = deepcopy(skeleton)
new_instance["subset"] = subset_name
new_instance["subsetGroup"] = group_name
else:
new_instance["multipartExr"] = False

# explicitly disable review by user
preview = preview and not do_not_add_review
Expand Down

0 comments on commit 4a5525a

Please sign in to comment.