[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11668] trunk/blender/source/blender/src/ editaction.c: Action Editor Bugfixes:

Joshua Leung aligorith at gmail.com
Sun Aug 19 05:30:25 CEST 2007


Revision: 11668
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11668
Author:   aligorith
Date:     2007-08-19 05:29:51 +0200 (Sun, 19 Aug 2007)

Log Message:
-----------
Action Editor Bugfixes:

* Insert Key (IKEY) menu was inserting keyframes on all channels when menu was dismissed, instead of not doing anything
* Clean IPO and Insert Key now only work on selected channels (when asked to). Was a missing line of code.

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

Modified: trunk/blender/source/blender/src/editaction.c
===================================================================
--- trunk/blender/source/blender/src/editaction.c	2007-08-19 02:39:59 UTC (rev 11667)
+++ trunk/blender/source/blender/src/editaction.c	2007-08-19 03:29:51 UTC (rev 11668)
@@ -324,6 +324,10 @@
 						if (ale) BLI_addtail(act_data, ale);
 					}
 				}
+				else {
+					/* only consider selected channels - achan not selected */
+					continue;
+				}	
 				
 				/* check if expanded - if not, continue on to next action channel */
 				if (EXPANDED_ACHAN(achan) == 0 && (filter_mode & ACTFILTER_ONLYICU)==0) 
@@ -1320,7 +1324,7 @@
 	
 		/* ask user what to keyframe */
 		mode = pupmenu("Insert Key%t|All Channels%x1|Only Selected Channels%x2");
-		if (mode == 0) return;
+		if (mode <= 0) return;
 		
 		/* filter data */
 		filter= (ACTFILTER_VISIBLE | ACTFILTER_FOREDIT | ACTFILTER_ONLYICU );
@@ -1351,7 +1355,7 @@
 		
 		/* ask user if they want to insert a keyframe */
 		mode = okee("Insert Keyframe?");
-		if (mode == 0) return;
+		if (mode <= 0) return;
 		
 		if (key->ipo) {
 			for (icu= key->ipo->curve.first; icu; icu=icu->next) {





More information about the Bf-blender-cvs mailing list