From 324c31d4e21e80f1e00f51fb4ddd78a2385dbeb1 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Thu, 7 Dec 2017 06:52:13 +0100 Subject: [PATCH] Sketcher: Fixing Polyline Arc Endpoint autoconstraints ====================================================== fixes #3091 Autoconstraints did not check whether the arc was CW or CCW, as such the autoconstraint on the second position was sometimes assigned to the start point. --- src/Mod/Sketcher/Gui/CommandCreateGeo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp index e5ed36b9dd..bebd04c345 100644 --- a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp +++ b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp @@ -1216,7 +1216,9 @@ public: virtualsugConstr1 = sugConstr2; // these are the initial constraints for the next iteration. if (sugConstr2.size() > 0) { - createAutoConstraints(sugConstr2, getHighestCurveIndex(), Sketcher::end); + createAutoConstraints(sugConstr2, getHighestCurveIndex(), + (SegmentMode == SEGMENT_MODE_Arc && startAngle > endAngle) ? + Sketcher::start : Sketcher::end); sugConstr2.clear(); }