From b143bfbf73da8905730d813bc3adb5c05f4b38cc Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 6 Sep 2016 07:10:02 +0300 Subject: [PATCH] Arc orientation when loading document (issue #1677) --- src/SketchPlugin/SketchPlugin_Arc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index e295aa8f4..07c4d3ee5 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -145,6 +145,9 @@ void SketchPlugin_Arc::execute() AttributeBooleanPtr isInversed = std::dynamic_pointer_cast(attribute(INVERSED_ID())); + // compute end parameter + aCircleForArc->parameter(anEndAttr->pnt(), paramTolerance, myParamBefore); + std::shared_ptr aCircleShape; if(!isInversed->value()) { aCircleShape = GeomAlgoAPI_EdgeBuilder::lineCircleArc(aCenter, aStartPoint, aEndPoint, aNormal); -- 2.39.2