diff --git a/src/Mod/Part/Gui/ViewProviderExt.cpp b/src/Mod/Part/Gui/ViewProviderExt.cpp index cf35e4a14..57eae9145 100644 --- a/src/Mod/Part/Gui/ViewProviderExt.cpp +++ b/src/Mod/Part/Gui/ViewProviderExt.cpp @@ -349,8 +349,14 @@ void ViewProviderPartExt::attach(App::DocumentObject *pcFeat) // The correct order is Edges, Polygon offset, Faces. SoPolygonOffset* offset = new SoPolygonOffset(); + // wireframe node + SoSeparator* wireframe = new SoSeparator(); + wireframe->addChild(pcLineMaterial); + wireframe->addChild(pcLineStyle); + wireframe->addChild(lineset); + // normal viewing with edges and points - pcNormalRoot->addChild(pcWireframeRoot); + pcNormalRoot->addChild(wireframe); pcNormalRoot->addChild(offset); pcNormalRoot->addChild(pcFlatRoot); pcNormalRoot->addChild(pcPointsRoot); @@ -366,10 +372,9 @@ void ViewProviderPartExt::attach(App::DocumentObject *pcFeat) pcFlatRoot->addChild(normb); pcFlatRoot->addChild(faceset); - // only edges - pcWireframeRoot->addChild(pcLineMaterial); - pcWireframeRoot->addChild(pcLineStyle); - pcWireframeRoot->addChild(lineset); + // edges and points + pcWireframeRoot->addChild(wireframe); + pcWireframeRoot->addChild(pcPointsRoot); // normal viewing with edges and points pcPointsRoot->addChild(pcPointMaterial);