From: azv Date: Thu, 4 May 2017 11:52:14 +0000 (+0300) Subject: Issue #2148: Moving an arc displays a circle X-Git-Tag: V_2.7.1~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e58adc4e0a14e4ae6a749f7c7424450580c4176d;p=modules%2Fshaper.git Issue #2148: Moving an arc displays a circle Force recalculating arc parameter when it is became a full circle. --- diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index e818241d0..fd361708f 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -106,9 +106,10 @@ void SketchPlugin_Arc::execute() } GeomShapePtr anArcShape; - if (fabs(myParamBefore - 2.0 * PI) < paramTolerance) + if (fabs(myParamBefore - 2.0 * PI) < paramTolerance) { anArcShape = GeomAlgoAPI_EdgeBuilder::lineCircle(aCenter, aNormal, aStart->distance(aCenter)); - else { + myParamBefore = 0; + } else { anArcShape = boolean(REVERSED_ID())->value() ? GeomAlgoAPI_EdgeBuilder::lineCircleArc(aCenter, anEnd, aStart, aNormal) : GeomAlgoAPI_EdgeBuilder::lineCircleArc(aCenter, aStart, anEnd, aNormal);