FreeCAD: master 501fa80e

Author Committer Branch Timestamp Parent
abdullah wmayer master 2015-12-04 14:49:40 master 118d2eb5
Affected Issues  0002315: Mirror Sketch - error pops up "can't find property"
Changeset Sketcher: Fix Sketch Mirror functionality

=========================================

The problem:
Mirror stopped working.

How to reproduce:
Select a sketch, and apply "Mirror Sketch" from the menu.

Why?
With the introduction of expressions, mirror sketch stopped working. The reason is that mirror functionality did use the "clone" function to make copies of constraints
and then modify their values. After expessions introduction, which introduces a unique tag per constraint, this copy was regarded as a "rename" of the original constraint
as they shared the unique tag.

Fix?
New function "copy()" for a constraint, that copies all the content but the tag.
mod - src/Mod/Sketcher/App/Constraint.cpp Diff File
mod - src/Mod/Sketcher/App/Constraint.h Diff File
mod - src/Mod/Sketcher/App/SketchObject.cpp Diff File