Skip to content

Commit fee4fd7

Browse files
committed
SceneShapeUI::select returns false when polygons aren't being displayed in the viewport.
Apparently selectInfo.selectable() still returns true when meshes are not displayed by the M3dView, so we are also testing the objectDisplay status. This was last confirmed in Maya 2014, and is presumably a Maya bug.
1 parent 6cc5fac commit fee4fd7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/IECoreMaya/SceneShapeUI.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//////////////////////////////////////////////////////////////////////////
22
//
3-
// Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved.
3+
// Copyright (c) 2007-2015, Image Engine Design Inc. All rights reserved.
44
//
55
// Redistribution and use in source and binary forms, with or without
66
// modification, are permitted provided that the following conditions are
@@ -559,7 +559,10 @@ bool SceneShapeUI::select( MSelectInfo &selectInfo, MSelectionList &selectionLis
559559
if( selectInfo.displayStatus() != M3dView::kHilite )
560560
{
561561
MSelectionMask meshMask( MSelectionMask::kSelectMeshes );
562-
if( !selectInfo.selectable( meshMask ) )
562+
// Apparently selectInfo.selectable() still returns true when meshes are not
563+
// displayed by the M3dView, so we are also testing the objectDisplay status.
564+
// This was last confirmed in Maya 2014, and is presumably a Maya bug.
565+
if( !selectInfo.selectable( meshMask ) || !selectInfo.objectDisplayStatus( M3dView::kDisplayMeshes ) )
563566
{
564567
return false;
565568
}

0 commit comments

Comments
 (0)