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); } };