diff --git a/lib/mayaUsd/render/vp2RenderDelegate/mesh.cpp b/lib/mayaUsd/render/vp2RenderDelegate/mesh.cpp index 56dd61ce81..c92bb4cf09 100644 --- a/lib/mayaUsd/render/vp2RenderDelegate/mesh.cpp +++ b/lib/mayaUsd/render/vp2RenderDelegate/mesh.cpp @@ -2441,8 +2441,8 @@ void HdVP2Mesh::_UpdateDrawItem( // Important, update instance transforms after setting geometry on render items! auto& oldInstanceCount = stateToCommit._renderItemData._instanceCount; auto newInstanceCount = stateToCommit._instanceTransforms - ? stateToCommit._instanceTransforms->length() - : oldInstanceCount; + ? stateToCommit._instanceTransforms->length() + : oldInstanceCount; // GPU instancing has been enabled. We cannot switch to consolidation // without recreating render item, so we keep using GPU instancing.