From ef4fa972babcbf788fd70ac5f50887406ca90bac Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 19 Dec 2007 08:48:41 +0000 Subject: 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) --- source/blender/src/toets.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/src/toets.c') 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; } } -- cgit v1.2.3