Draft: fixed a bug in Draft Scale

This commit is contained in:
Yorik van Havre 2014-02-04 09:44:50 -02:00
parent 1441021541
commit bba8760b11

View File

@ -1256,7 +1256,7 @@ 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) == "Wire":
elif getType(obj) in ["Wire","BSpline"]:
p = []
for v in sh.Vertexes: p.append(v.Point)
newobj.Points = p