Draft: small fix to Draft Clone

If scale is (1,1,1), matrix transform is no longer applied
This commit is contained in:
Yorik van Havre 2014-03-24 13:22:08 -03:00
parent e293d61d54
commit 4bf2f92d70

View File

@ -4539,8 +4539,9 @@ class _Clone(_DraftObject):
sh = o.Shape.copy()
m = FreeCAD.Matrix()
if hasattr(obj,"Scale") and not sh.isNull():
m.scale(obj.Scale)
sh = sh.transformGeometry(m)
if not DraftVecUtils.equals(obj.Scale,Vector(1,1,1)):
m.scale(obj.Scale)
sh = sh.transformGeometry(m)
if not sh.isNull():
shapes.append(sh)
if shapes: