Origin plane: make plane faces unpickable

This commit is contained in:
Ronny Standtke
2023-04-29 17:12:35 +02:00
committed by Adrián Insaurralde Avalos
parent 28d5f47b14
commit adb40e5634

View File

@@ -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);