diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-01-19 04:15:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-01-19 04:15:17 +0300 |
commit | 4a32e0380b4ac15955043554302742333329850b (patch) | |
tree | 22146e011c09f88cc7694efcc0d012949b302309 /source/blender/src/editoops.c | |
parent | 9ea630196c45cf15e3e292f391d0c69bef529eb2 (diff) |
Bugfix for http://projects.blender.org/tracker/?func=detail&atid=125&aid=3767&group_id=9
View All/View Selected - only took into account values from 1 axis. - Workaround because test_view2d needs to act that way for other functions.
Easy one :) Right mouse mutton cancels transform. - Must move to Theeth's new code one day.
Diffstat (limited to 'source/blender/src/editoops.c')
-rw-r--r-- | source/blender/src/editoops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/editoops.c b/source/blender/src/editoops.c index 2b4a3e869f8..8b1f96e3569 100644 --- a/source/blender/src/editoops.c +++ b/source/blender/src/editoops.c @@ -335,6 +335,7 @@ void transform_oops(int mode, int context) if(val) { switch(event) { case ESCKEY: + case RIGHTMOUSE: case LEFTMOUSE: case SPACEKEY: case RETKEY: @@ -358,7 +359,7 @@ void transform_oops(int mode, int context) } } - if(event==ESCKEY) { + if(event==ESCKEY || event==RIGHTMOUSE) { tv= transmain; for(a=0; a<tot; a++, tv++) { tv->loc[0]= tv->oldloc[0]; |