Skip to content

Commit

Permalink
use consistent display mode names
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 3, 2017
1 parent f560398 commit 450e3d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Mesh/Gui/ViewProvider.cpp
Expand Up @@ -423,7 +423,7 @@ void ViewProviderMesh::attach(App::DocumentObject *pcFeat)
pcFlatRoot->addChild(pcShapeMaterial);
pcFlatRoot->addChild(pcMatBinding);
pcFlatRoot->addChild(pcHighlight);
addDisplayMaskMode(pcFlatRoot, "Flat");
addDisplayMaskMode(pcFlatRoot, "Shaded");

// points
SoGroup* pcPointRoot = new SoGroup();
Expand Down Expand Up @@ -469,7 +469,7 @@ void ViewProviderMesh::attach(App::DocumentObject *pcFeat)
pcFlatWireRoot->addChild(pcShapeMaterial);
pcFlatWireRoot->addChild(pcMatBinding);
pcFlatWireRoot->addChild(pcShapeGroup);
addDisplayMaskMode(pcFlatWireRoot, "FlatWireframe");
addDisplayMaskMode(pcFlatWireRoot, "Flat Lines");

if (getColorProperty()) {
Coloring.setStatus(App::Property::Hidden, false);
Expand Down Expand Up @@ -576,13 +576,13 @@ void ViewProviderMesh::setColorPerVertex(const App::PropertyColorList* prop)
void ViewProviderMesh::setDisplayMode(const char* ModeName)
{
if (strcmp("Shaded",ModeName)==0) {
setDisplayMaskMode("Flat");
setDisplayMaskMode("Shaded");
}
else if (strcmp("Points",ModeName)==0) {
setDisplayMaskMode("Point");
}
else if (strcmp("Flat Lines",ModeName)==0) {
setDisplayMaskMode("FlatWireframe");
setDisplayMaskMode("Flat Lines");
}
else if (strcmp("Wireframe",ModeName)==0) {
setDisplayMaskMode("Wireframe");
Expand Down

0 comments on commit 450e3d8

Please sign in to comment.