Salome HOME
Issue #2999: Provide initialization of deviation coefficient for all presentations
[modules/shaper.git] / src / PartSet / PartSet_OperationPrs.cpp
index 5c2d2ae1135a92aa30c527495910ad23f6c88fa0..f782ca3c0c60d5263be8dddc626b01552f8d9a88 100644 (file)
@@ -92,6 +92,7 @@ PartSet_OperationPrs::PartSet_OperationPrs(ModuleBase_IWorkshop* theWorkshop)
   aDrawer->SetUIsoAspect(aUIsoAspect);
   aDrawer->SetVIsoAspect(aVIsoAspect);
   aDrawer->SetIsoOnPlane(false);
+  //aDrawer->SetTypeOfDeflection(Aspect_TOD_ABSOLUTE);
 }
 
 bool PartSet_OperationPrs::hasShapes()
@@ -135,9 +136,7 @@ void PartSet_OperationPrs::Compute(
     // change deviation coefficient to provide more precise circle
     // as there is no result, the shape is processed to correct deviation. To be unified
     ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, aDrawer);
-    Handle(Prs3d_Drawer) aHighlightDrawer = DynamicHilightAttributes();
-    if (!aHighlightDrawer.IsNull())
-      ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, aHighlightDrawer);
+    ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, DynamicHilightAttributes());
 
     if (myUseAISWidth) {
       Handle(AIS_InteractiveObject) anIO = anIter.Value();