From e58adc4e0a14e4ae6a749f7c7424450580c4176d Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 4 May 2017 14:52:14 +0300 Subject: [PATCH] Issue #2148: Moving an arc displays a circle Force recalculating arc parameter when it is became a full circle. --- src/SketchPlugin/SketchPlugin_Arc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.2