Skip to content

Commit

Permalink
Merge pull request #1208 from Autodesk/krickw/MAYA-109889/use_correct…
Browse files Browse the repository at this point in the history
…_selection_mask_for_basisCurves

Use the nurbs curve selection mask for basis curves.
  • Loading branch information
Krystian Ligenza authored Feb 25, 2021
2 parents 6f9031f + d05689f commit 04a14fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/mayaUsd/render/vp2RenderDelegate/basisCurves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ MHWRender::MRenderItem* HdVP2BasisCurves::_CreateWireRenderItem(const MString& n
renderItem->castsShadows(false);
renderItem->receivesShadows(false);
renderItem->setShader(_delegate->Get3dSolidShader(kOpaqueGray));
renderItem->setSelectionMask(MSelectionMask::kSelectCurves);
renderItem->setSelectionMask(MSelectionMask::kSelectNurbsCurves);

#if MAYA_API_VERSION >= 20220000
renderItem->setObjectTypeExclusionFlag(MHWRender::MFrameContext::kExcludeNurbsCurves);
Expand All @@ -1749,7 +1749,7 @@ MHWRender::MRenderItem* HdVP2BasisCurves::_CreateBBoxRenderItem(const MString& n
renderItem->castsShadows(false);
renderItem->receivesShadows(false);
renderItem->setShader(_delegate->Get3dSolidShader(kOpaqueGray));
renderItem->setSelectionMask(MSelectionMask::kSelectCurves);
renderItem->setSelectionMask(MSelectionMask::kSelectNurbsCurves);

#if MAYA_API_VERSION >= 20220000
renderItem->setObjectTypeExclusionFlag(MHWRender::MFrameContext::kExcludeNurbsCurves);
Expand All @@ -1772,7 +1772,7 @@ MHWRender::MRenderItem* HdVP2BasisCurves::_CreatePatchRenderItem(const MString&
renderItem->castsShadows(false);
renderItem->receivesShadows(false);
renderItem->setShader(_delegate->Get3dSolidShader(kOpaqueGray));
renderItem->setSelectionMask(MSelectionMask::kSelectCurves);
renderItem->setSelectionMask(MSelectionMask::kSelectNurbsCurves);

#if MAYA_API_VERSION >= 20220000
renderItem->setObjectTypeExclusionFlag(MHWRender::MFrameContext::kExcludeNurbsCurves);
Expand All @@ -1796,7 +1796,7 @@ MHWRender::MRenderItem* HdVP2BasisCurves::_CreatePointsRenderItem(const MString&
renderItem->setShader(_delegate->Get3dFatPointShader());

MSelectionMask selectionMask(MSelectionMask::kSelectPointsForGravity);
selectionMask.addMask(MSelectionMask::kSelectCurves);
selectionMask.addMask(MSelectionMask::kSelectNurbsCurves);
renderItem->setSelectionMask(selectionMask);

#if MAYA_API_VERSION >= 20220000
Expand Down

0 comments on commit 04a14fc

Please sign in to comment.