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.
This commit is contained in:
Abdullah Tahiri
2017-12-07 06:52:13 +01:00
committed by wmayer
parent 4006c6ee97
commit 324c31d4e2

View File

@@ -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();
}