Skip to content

Commit

Permalink
FEM: vtk post processing, add a workaround check for back light
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Mar 13, 2018
1 parent 5d87ee4 commit 0cdbe26
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp
Expand Up @@ -546,6 +546,13 @@ void ViewProviderFemPostObject::onChanged(const App::Property* prop) {
}

bool ViewProviderFemPostObject::doubleClicked(void) {
// work around for a problme in VTK implementation: https://forum.freecadweb.org/viewtopic.php?t=10587&start=130#p125688
// check if backlight is enabled
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
bool isBackLightEnabled = hGrp->GetBool("EnableBacklight", false);
if (isBackLightEnabled == false)
Base::Console().Error("Back light is not enabled. Due to a VTK implemataion problem you really should consider to enable back light in FreeCAD display preferences if you work with VTK post processing.\n");
// set edit
Gui::Application::Instance->activeDocument()->setEdit(this, (int)ViewProvider::Default);
return true;
}
Expand Down

0 comments on commit 0cdbe26

Please sign in to comment.