[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12943] trunk/blender/source/blender/src/ toets.c: Changed the default hotkeys for playing animations to be more useful IMO ( ported from AnimSys branch):

Joshua Leung aligorith at gmail.com
Wed Dec 19 09:48:42 CET 2007


Revision: 12943
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12943
Author:   aligorith
Date:     2007-12-19 09:48:41 +0100 (Wed, 19 Dec 2007)

Log Message:
-----------
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)

Modified Paths:
--------------
    trunk/blender/source/blender/src/toets.c

Modified: trunk/blender/source/blender/src/toets.c
===================================================================
--- trunk/blender/source/blender/src/toets.c	2007-12-19 07:44:37 UTC (rev 12942)
+++ trunk/blender/source/blender/src/toets.c	2007-12-19 08:48:41 UTC (rev 12943)
@@ -752,12 +752,12 @@
 
 	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;
 			}
 		}





More information about the Bf-blender-cvs mailing list