+ small fixes to Draft Scale tool

This commit is contained in:
Yorik van Havre
2012-01-03 13:25:37 -02:00
parent 4d3e0ba7b9
commit 5c4cf71e2d

View File

@@ -736,7 +736,7 @@ def rotate(objectslist,angle,center=Vector(0,0,0),axis=Vector(0,0,1),copy=False)
return newobjlist
def scale(objectslist,delta,center=Vector(0,0,0),copy=False,legacy=False):
def scale(objectslist,delta=Vector(1,1,1),center=Vector(0,0,0),copy=False,legacy=False):
'''scale(objects,vector,[center,copy,legacy]): Scales the objects contained
in objects (that can be a list of objects or an object) of the given scale
factors defined by the given vector (in X, Y and Z directions) around
@@ -801,8 +801,9 @@ def scale(objectslist,delta,center=Vector(0,0,0),copy=False,legacy=False):
obj.Objects = objectslist
obj.Scale = delta
obj.BasePoint = center
for o in objectslist:
o.ViewObject.hide()
if not copy:
for o in objectslist:
o.ViewObject.hide()
formatObject(obj,objectslist[-1])
select(obj)
return obj