+ small fixes to Draft Scale tool
This commit is contained in:
parent
ef44c3e63b
commit
e39c328ef6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user