[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12875] branches/animsys-aligorith/source/ blender/src/toets.c: == AnimSys Branch ==
Joshua Leung
aligorith at gmail.com
Fri Dec 14 00:01:52 CET 2007
Revision: 12875
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12875
Author: aligorith
Date: 2007-12-14 00:01:52 +0100 (Fri, 14 Dec 2007)
Log Message:
-----------
== AnimSys Branch ==
Changed the default hotkeys for playing animations to be more useful IMO:
* 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)
Modified Paths:
--------------
branches/animsys-aligorith/source/blender/src/toets.c
Modified: branches/animsys-aligorith/source/blender/src/toets.c
===================================================================
--- branches/animsys-aligorith/source/blender/src/toets.c 2007-12-13 22:36:10 UTC (rev 12874)
+++ branches/animsys-aligorith/source/blender/src/toets.c 2007-12-13 23:01:52 UTC (rev 12875)
@@ -753,12 +753,14 @@
case AKEY:
if(textediting==0 && textspace==0) {
- if(G.qual==(LR_SHIFTKEY|LR_ALTKEY)){
- play_anim(1);
+ if ((G.qual==LR_ALTKEY) && (curarea->spacetype==SPACE_VIEW3D)) {
+ /* only play in active 3d-view */
+ play_anim(0);
return 0;
}
- else if(G.qual==LR_ALTKEY) {
- play_anim(0);
+ else if ((G.qual==(LR_ALTKEY|LR_SHIFTKEY)) || (G.qual==LR_ALTKEY)) {
+ /* play in all spaces */
+ play_anim(1);
return 0;
}
}
More information about the Bf-blender-cvs
mailing list