Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix on getting aov expected files when global aov mode disabled in Redshift #178

Merged
merged 10 commits into from
Apr 5, 2024
15 changes: 15 additions & 0 deletions client/ayon_core/hosts/maya/api/lib_renderproducts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,21 @@ def get_render_products(self):
light_groups_enabled = False
has_beauty_aov = False
colorspace = lib.get_color_management_output_transform()
global_aov_enabled = bool(
self._get_attr("redshiftOptions.aovGlobalEnableMode")
)
if not global_aov_enabled:
beauty_name = "BeautyAux" if has_beauty_aov else ""
for camera in cameras:
products.insert(0,
RenderProduct(productName=beauty_name,
ext=ext,
multipart=self.multipart,
camera=camera,
colorspace=colorspace))

return products

for aov in aovs:
enabled = self._get_attr(aov, "enabled")
if not enabled:
Expand Down