Skip to content

Commit

Permalink
[skip ci] fixes #4309: The behavior of the Std_DrawStyle command is i…
Browse files Browse the repository at this point in the history
…nconsistent when there are multiple 3D views for the active document.
  • Loading branch information
wwmayer committed May 1, 2020
1 parent d5d16de commit 419e8f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Gui/View3DInventorViewer.cpp
Expand Up @@ -1248,6 +1248,19 @@ void View3DInventorViewer::updateOverrideMode(const std::string& mode)
return;

overrideMode = mode;

if (mode == "No Shading") {
this->shading = false;
this->getSoRenderManager()->setRenderMode(SoRenderManager::AS_IS);
}
else if (mode == "Hidden Line") {
this->shading = true;
this->getSoRenderManager()->setRenderMode(SoRenderManager::HIDDEN_LINE);
}
else {
this->shading = true;
this->getSoRenderManager()->setRenderMode(SoRenderManager::AS_IS);
}
}

void View3DInventorViewer::setViewportCB(void*, SoAction* action)
Expand Down

0 comments on commit 419e8f7

Please sign in to comment.