Skip to content

Commit

Permalink
MAYA-95391 RMB click shouldn't trigger selection (AnimalLogic#24)
Browse files Browse the repository at this point in the history
Port the VP1 implementation in ProxyShapeUI::select().
  • Loading branch information
Huidong Chen authored and GitHub Enterprise committed Nov 2, 2018
1 parent 7821f52 commit ff8c4e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/AL_USDMaya/AL/usdmaya/nodes/ProxyDrawOverride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,9 @@ bool ProxyDrawOverride::userSelect(
{
TF_DEBUG(ALUSDMAYA_SELECTION).Msg("ProxyDrawOverride::userSelect\n");

if (!selectInfo.selectable(MSelectionMask(ProxyShape::s_selectionMaskName)))
return false;

MStatus status;
MMatrix worldViewMatrix = context.getMatrix(
MHWRender::MFrameContext::kWorldViewMtx, &status);
Expand Down

0 comments on commit ff8c4e3

Please sign in to comment.