fix 'Flat Lines' display mode of meshes
This commit is contained in:
parent
6c2a7b479f
commit
aa59757000
|
@ -440,12 +440,6 @@ void ViewProviderMesh::attach(App::DocumentObject *pcFeat)
|
||||||
addDisplayMaskMode(pcWireRoot, "Wireframe");
|
addDisplayMaskMode(pcWireRoot, "Wireframe");
|
||||||
|
|
||||||
// faces+wires
|
// faces+wires
|
||||||
Gui::SoFCSelection* selGroup = Gui::ViewProviderBuilder::createSelection();
|
|
||||||
selGroup->objectName = getObject()->getNameInDocument();
|
|
||||||
selGroup->documentName = getObject()->getDocument()->getName();
|
|
||||||
selGroup->subElementName = "Main";
|
|
||||||
selGroup->addChild(getShapeNode());
|
|
||||||
|
|
||||||
// Avoid any Z-buffer artefacts, so that the lines always
|
// Avoid any Z-buffer artefacts, so that the lines always
|
||||||
// appear on top of the faces
|
// appear on top of the faces
|
||||||
SoPolygonOffset* offset = new SoPolygonOffset();
|
SoPolygonOffset* offset = new SoPolygonOffset();
|
||||||
|
@ -454,19 +448,11 @@ void ViewProviderMesh::attach(App::DocumentObject *pcFeat)
|
||||||
offset->units = 1.0f;
|
offset->units = 1.0f;
|
||||||
|
|
||||||
SoGroup* pcFlatWireRoot = new SoGroup();
|
SoGroup* pcFlatWireRoot = new SoGroup();
|
||||||
pcFlatWireRoot->addChild(getCoordNode());
|
SoSeparator* pcWireSep = new SoSeparator();
|
||||||
SoSeparator* sep = new SoSeparator();
|
pcWireSep->addChild(pcWireRoot);
|
||||||
sep->addChild(pcLineStyle);
|
pcFlatWireRoot->addChild(pcWireSep);
|
||||||
sep->addChild(pcLightModel);
|
|
||||||
sep->addChild(binding);
|
|
||||||
sep->addChild(pLineColor);
|
|
||||||
sep->addChild(selGroup);
|
|
||||||
pcFlatWireRoot->addChild(sep);
|
|
||||||
pcFlatWireRoot->addChild(offset);
|
pcFlatWireRoot->addChild(offset);
|
||||||
pcFlatWireRoot->addChild(pShapeHints);
|
pcFlatWireRoot->addChild(pcFlatRoot);
|
||||||
pcFlatWireRoot->addChild(pcShapeMaterial);
|
|
||||||
pcFlatWireRoot->addChild(pcMatBinding);
|
|
||||||
pcFlatWireRoot->addChild(getShapeNode());
|
|
||||||
addDisplayMaskMode(pcFlatWireRoot, "FlatWireframe");
|
addDisplayMaskMode(pcFlatWireRoot, "FlatWireframe");
|
||||||
|
|
||||||
if (getColorProperty()) {
|
if (getColorProperty()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user