From 0852116f20f2e9a48124102209eafbde3df7d046 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 22 Jun 2016 09:13:10 +0300 Subject: [PATCH] Initialize necessary attributes of external arc (issue #1580) --- src/SketchPlugin/SketchPlugin_Arc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index a787a5d65..9825ce9c2 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -334,6 +334,11 @@ void SketchPlugin_Arc::attributeChanged(const std::string& theID) aStartAttr->setValue(sketch()->to2D(anEdge->firstPoint())); anEndAttr->setValue(sketch()->to2D(anEdge->lastPoint())); aCenterAttr->setValue(sketch()->to2D(aCirc->center())); + + data()->real(RADIUS_ID())->setValue(aCirc->radius()); + double aStartAngle, aEndAngle; + anEdge->getRange(aStartAngle, aEndAngle); + data()->real(ANGLE_ID())->setValue(aEndAngle - aStartAngle); } } return; -- 2.39.2