From c16b1c1919ac6d98f8ed991f5a515f50731255cb Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 14 Jan 2019 15:20:51 +0300 Subject: [PATCH] Issue #2825: Do not change deflection of pre-highlighting and selection because of performance reasons --- src/XGUI/XGUI_Displayer.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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; } -- 2.39.2