X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Displayer.cpp;h=e83f1f14328bbe221d9e655f12e29f123d3bd95c;hb=689bd6ca04a18da1645152760ba12ca7c2de146d;hp=8eb1c126118cfbcf8c535fa5d4c4580b82a40db4;hpb=14d68de6614cff9ee4ff1ffafa572a36f0eccad3;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 8eb1c1261..e83f1f143 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include "XGUI_Displayer.h" @@ -697,14 +696,16 @@ Handle(AIS_InteractiveContext) XGUI_Displayer::AISContext() const aContext->DefaultDrawer()->UIsoAspect()->SetNumber(0); ModuleBase_IViewer::DefaultHighlightDrawer = aContext->HighlightStyle(); - Handle(Prs3d_Drawer) aSelStyle = aContext->SelectionStyle(); - double aDeflection = QString(ModelAPI_ResultConstruction::DEFAULT_DEFLECTION().c_str()).toDouble(); - try { - aDeflection = Config_PropManager::real("Visualization", "construction_deflection"); - } catch (...) {} - - ModuleBase_IViewer::DefaultHighlightDrawer->SetDeviationCoefficient(aDeflection); - aSelStyle->SetDeviationCoefficient(aDeflection); + // Commented out according to discussion in bug #2825 + //Handle(Prs3d_Drawer) aSelStyle = aContext->SelectionStyle(); + //double aDeflection = + // QString(ModelAPI_ResultConstruction::DEFAULT_DEFLECTION().c_str()).toDouble(); + //try { + // aDeflection = Config_PropManager::real("Visualization", "construction_deflection"); + //} catch (...) {} + + //ModuleBase_IViewer::DefaultHighlightDrawer->SetDeviationCoefficient(aDeflection); + //aSelStyle->SetDeviationCoefficient(aDeflection); } return aContext; }