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)
This commit is contained in:
Joshua Leung
2007-12-19 08:48:41 +00:00
parent b3ff38cacd
commit ef4fa972ba

View File

@@ -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;
}
}