From 2ee101dee380b05417457cfc558d4b9458133b97 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 4 Feb 2014 16:08:09 -0200 Subject: [PATCH] Draft: fixed draft scale again - fixes #1385 --- src/Mod/Draft/Draft.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index b9ee3e5bb..491686ba7 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -1256,9 +1256,17 @@ def scale(objectslist,delta=Vector(1,1,1),center=Vector(0,0,0),copy=False,legacy newobj.Height = h tr = p[0].sub(obj.Shape.Vertexes[0].Point) newobj.Placement = pl - elif getType(obj) in ["Wire","BSpline"]: + elif getType(obj) == "Wire": p = [] for v in sh.Vertexes: p.append(v.Point) + print p + newobj.Points = p + elif getType(obj) == "BSpline": + p = [] + for p1 in obj.Points: + p2 = p1.sub(center) + p2.scale(delta.x,delta.y,delta.z) + p.append(p2) newobj.Points = p elif (obj.isDerivedFrom("Part::Feature")): newobj.Shape = sh