Update scale.py

This commit is contained in:
Roy-043
2020-08-31 19:45:00 +02:00
committed by Yorik van Havre
parent d9a5494462
commit 5cbf5080d2

View File

@@ -71,11 +71,9 @@ def scale(objectslist, scale=App.Vector(1,1,1),
if hasattr(obj,'Shape'):
scaled_shape = obj.Shape.copy()
m = App.Matrix()
m.move(obj.Placement.Base.negative())
m.move(center.negative())
m.scale(scale.x,scale.y,scale.z)
m.move(center)
m.move(obj.Placement.Base)
scaled_shape = scaled_shape.transformGeometry(m)
if utils.get_type(obj) == "Rectangle":
p = []