FreeCAD: master 5676c632

Author Committer Branch Timestamp Parent
abdullah abdullah master 2015-05-27 16:22:31 master 24b71377
Changeset Bug fix: Sketcher Polygon autoconstraints
=========================================

The autoconstraints on creation of an hexagon were not working.

How to reproduce?
1. In a sketch make a couple of lines
2. Create an hexagon (or other polygon of your choice) with center in one end of a line and with side coincident with the end point of the other line

Result:
Neither the center nor the side autoconstraints are properly created.

Fix:
Straightforward. Just correct the indexes. Last is always the circle. Last but one is always a side.
mod - src/Mod/Sketcher/Gui/CommandCreateGeo.cpp Diff File