From: vsv Date: Mon, 14 Jan 2019 12:20:51 +0000 (+0300) Subject: Issue #2825: Do not change deflection of pre-highlighting and selection because of... X-Git-Tag: Jan2019~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c16b1c1919ac6d98f8ed991f5a515f50731255cb;p=modules%2Fshaper.git Issue #2825: Do not change deflection of pre-highlighting and selection because of performance reasons --- diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 16b1ecb65..39a5935d5 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -697,15 +697,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; }