[skip ci] fixes #0004309: The behavior of the Std_DrawStyle command is inconsistent when there are multiple 3D views for the active document.

This commit is contained in:
wmayer
2020-05-01 23:30:53 +02:00
parent 3f9e53b9a5
commit bb55427ca2

View File

@@ -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)