From 4db0cbc74151e78bb59a02b094fee7677705aa30 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Thu, 31 Mar 2005 22:18:08 +0000 Subject: Push/Pull (aka: non proportionnal resize, original idea by Robert Tiess) slipped in my last commit a bit, so might as well finish it. Accesible with Shift-P (was free), the behavior is much like Shrink/Fatten. Pull mouse toward you to pull toward center, push away to push away. Constraint and PET works with it too, of course. --- source/blender/src/space.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/src/space.c') diff --git a/source/blender/src/space.c b/source/blender/src/space.c index 7cb4cae4978..fd936da8eaf 100644 --- a/source/blender/src/space.c +++ b/source/blender/src/space.c @@ -1447,7 +1447,6 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) break; case PKEY: - if(G.obedit) { if(G.qual==LR_CTRLKEY || G.qual==(LR_SHIFTKEY|LR_CTRLKEY)) make_parent(); @@ -1455,9 +1454,13 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt) separatemenu(); else if ((G.qual==0) && ELEM(G.obedit->type, OB_CURVE, OB_SURF)) separate_nurb(); + else if (G.qual==LR_SHIFTKEY) + Transform(TFM_PUSHPULL, CTX_NONE); } else if(G.qual==LR_CTRLKEY || G.qual==(LR_SHIFTKEY|LR_CTRLKEY)) make_parent(); + else if(G.qual==LR_SHIFTKEY) + Transform(TFM_PUSHPULL, CTX_NONE); else if(G.qual==LR_ALTKEY) clear_parent(); else if((G.qual==0)) { -- cgit v1.2.3