add only beauty output when global aov disabled

This commit is contained in:
Kayla Man 2024-03-14 15:10:03 +08:00
parent b729bf4f30
commit ffa395af64

View file

@ -1133,24 +1133,24 @@ class RenderProductsRedshift(ARenderProducts):
aovs = list(set(aovs) - set(ref_aovs))
products = []
light_groups_enabled = False
has_beauty_aov = False
colorspace = lib.get_color_management_output_transform()
global_aov_enabled = bool(
self._get_attr("redshiftOptions.aovGlobalEnableMode")
)
colorspace = lib.get_color_management_output_transform()
if not global_aov_enabled:
beauty_name = "BeautyAux" if has_beauty_aov else ""
# only beauty output
for camera in cameras:
products.insert(0,
RenderProduct(productName=beauty_name,
ext=ext,
multipart=self.multipart,
camera=camera,
colorspace=colorspace))
RenderProduct(productName="",
ext=ext,
multipart=self.multipart,
camera=camera,
colorspace=colorspace))
return products
light_groups_enabled = False
has_beauty_aov = False
for aov in aovs:
enabled = self._get_attr(aov, "enabled")
if not enabled: