From 377f8824623dbe4a00851ec99e4d20e4176d07aa Mon Sep 17 00:00:00 2001 From: Keli Li Date: Wed, 30 Oct 2024 09:04:06 -0400 Subject: [PATCH] update based on review --- .../hydraExtensions/adapters/materialNetworkConverter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/mayaHydra/hydraExtensions/adapters/materialNetworkConverter.cpp b/lib/mayaHydra/hydraExtensions/adapters/materialNetworkConverter.cpp index 72ed6ff07..6cce4f4a0 100644 --- a/lib/mayaHydra/hydraExtensions/adapters/materialNetworkConverter.cpp +++ b/lib/mayaHydra/hydraExtensions/adapters/materialNetworkConverter.cpp @@ -552,13 +552,11 @@ class MayaHydraOpenPBRTransmissionMaterialAttrConverter : public MayaHydraComput val = 1.0e-4f; } - float fGeometryOpacity = 1.0f; if (geometryOpacity.IsHolding()) { - fGeometryOpacity = geometryOpacity.UncheckedGet(); + float fGeometryOpacity = geometryOpacity.UncheckedGet(); + val *= fGeometryOpacity; } - val *= fGeometryOpacity; - return VtValue(val); } };