Fixed bug in Draft Clone

This commit is contained in:
Yorik van Havre 2012-05-14 11:13:19 -03:00 committed by logari81
parent ce5d9a332a
commit 5833e85f00

View File

@ -2853,8 +2853,9 @@ class _Clone:
if o.isDerivedFrom("Part::Feature"):
sh = o.Shape.copy()
m = FreeCAD.Matrix()
m.scale(obj.Scale)
sh = sh.transformGeometry(m)
if hasattr(obj,"Scale") and not sh.isNull():
m.scale(obj.Scale)
sh = sh.transformGeometry(m)
shapes.append(sh)
if shapes:
obj.Shape = Part.makeCompound(shapes)