Origin plane: make plane faces unpickable
This commit is contained in:
committed by
Adrián Insaurralde Avalos
parent
28d5f47b14
commit
adb40e5634
@@ -96,6 +96,11 @@ void ViewProviderPlane::attach ( App::DocumentObject *obj ) {
|
||||
shapeHints->shapeType = SoShapeHints::UNKNOWN_SHAPE_TYPE;
|
||||
faceSeparator->addChild(shapeHints);
|
||||
|
||||
// disable picking
|
||||
auto pickStyle = new SoPickStyle();
|
||||
pickStyle->style = SoPickStyle::UNPICKABLE;
|
||||
faceSeparator->addChild(pickStyle);
|
||||
|
||||
auto faceSet = new SoFaceSet();
|
||||
auto vertexProperty = new SoVertexProperty();
|
||||
vertexProperty->vertex.setValues(0, 4, verts);
|
||||
|
||||
Reference in New Issue
Block a user