diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-12-19 11:48:41 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-12-19 11:48:41 +0300 |
commit | ef4fa972babcbf788fd70ac5f50887406ca90bac (patch) | |
tree | c748edaa5919c3680f819747a8ff0a37555eb939 /source/blender/src | |
parent | b3ff38cacdb497df769d44546416cb49bf421677 (diff) |
Changed the default hotkeys for playing animations to be more useful IMO (ported from AnimSys branch):
* Alt-A now only plays the animation in the active space, if that space is a 3D-view. Otherwise, it plays the animation in all spaces. The old behaviour simply didn't make sense for animation editors, where you'd simply see the current-frame marker moving...
* Alt-Shift-A now plays the animation in all spaces regardless of whether they are active (including 3d-views)
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/toets.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c index f2c50ffc2a4..ad7c1b4069b 100644 --- a/source/blender/src/toets.c +++ b/source/blender/src/toets.c @@ -752,12 +752,12 @@ int blenderqread(unsigned short event, short val) case AKEY: if(textediting==0 && textspace==0) { - if(G.qual==(LR_SHIFTKEY|LR_ALTKEY)){ - play_anim(1); + if ((G.qual==LR_ALTKEY) && (curarea && curarea->spacetype==SPACE_VIEW3D)) { + play_anim(0); return 0; } - else if(G.qual==LR_ALTKEY) { - play_anim(0); + else if ((G.qual==LR_ALTKEY) || (G.qual==(LR_ALTKEY|LR_SHIFTKEY))){ + play_anim(1); return 0; } } |