use transformShape for uniform scaling in Draft._Clone Feature

This commit is contained in:
Sebastian Hoogen 2014-05-01 11:58:09 +02:00
parent 49de4f6760
commit 8dca9210d8

View File

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