use transformShape for uniform scaling in Draft._Clone Feature
This commit is contained in:
parent
49de4f6760
commit
8dca9210d8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user