From adb40e5634e67424263a37b148624922dc8fc8ea Mon Sep 17 00:00:00 2001 From: Ronny Standtke Date: Sat, 29 Apr 2023 17:12:35 +0200 Subject: [PATCH] Origin plane: make plane faces unpickable --- src/Gui/ViewProviderPlane.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Gui/ViewProviderPlane.cpp b/src/Gui/ViewProviderPlane.cpp index 156d06488f..a16d68833f 100644 --- a/src/Gui/ViewProviderPlane.cpp +++ b/src/Gui/ViewProviderPlane.cpp @@ -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);