From e39c328ef680e1a4285c27acaaa7a20c5c328561 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 3 Jan 2012 13:25:37 -0200 Subject: [PATCH] + small fixes to Draft Scale tool --- src/Mod/Draft/Draft.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 78add3caf..f85ea04b8 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -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