]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2825: Do not change deflection of pre-highlighting and selection because of...
authorvsv <vsv@opencascade.com>
Mon, 14 Jan 2019 12:20:51 +0000 (15:20 +0300)
committervsv <vsv@opencascade.com>
Mon, 14 Jan 2019 12:20:51 +0000 (15:20 +0300)
src/XGUI/XGUI_Displayer.cpp

index 16b1ecb657c27aa009e2f2cc8abb0888b1ff3427..39a5935d5975da0ef379c9ad9064164f92559a61 100644 (file)
@@ -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;
 }