Draft: Apply clones scaling before the placement - fixes #2681

This commit is contained in:
Yorik van Havre 2016-08-26 11:25:01 -03:00
parent 46adbae952
commit f1bc0ce25d

View File

@ -5341,11 +5341,14 @@ class _Clone(_DraftObject):
if hasattr(obj,"Scale") and not sh.isNull():
sx,sy,sz = obj.Scale
if not DraftVecUtils.equals(obj.Scale,Vector(1,1,1)):
op = sh.Placement
sh.Placement = FreeCAD.Placement()
m.scale(obj.Scale)
if sx == sy == sz:
sh.transformShape(m)
else:
sh = sh.transformGeometry(m)
sh.Placement = op
if not sh.isNull():
shapes.append(sh)
if shapes: