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 1c40313e16
commit 7762230a04

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)