[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41272] trunk/blender/source/blender/ editors/animation/keyingsets.c: Bugfix [#29006] "Delta *" KeyingSet not working correctly on operator

Joshua Leung aligorith at gmail.com
Tue Oct 25 07:55:54 CEST 2011


Revision: 41272
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41272
Author:   aligorith
Date:     2011-10-25 05:55:51 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
Bugfix [#29006] "Delta *" KeyingSet not working correctly on operator
redo

This is the second part of a similar bugfix months ago, except this
time, it was just the property enum which was using the wrong indices.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/keyingsets.c

Modified: trunk/blender/source/blender/editors/animation/keyingsets.c
===================================================================
--- trunk/blender/source/blender/editors/animation/keyingsets.c	2011-10-25 04:01:09 UTC (rev 41271)
+++ trunk/blender/source/blender/editors/animation/keyingsets.c	2011-10-25 05:55:51 UTC (rev 41272)
@@ -731,10 +731,10 @@
 	 *	- these are listed in the order in which they were defined for the active scene
 	 */
 	if (scene->keyingsets.first) {
-		for (ks= scene->keyingsets.first; ks; ks= ks->next) {
+		for (ks= scene->keyingsets.first; ks; ks= ks->next, i++) {
 			if (ANIM_keyingset_context_ok_poll(C, ks)) {
 				item_tmp.identifier= item_tmp.name= ks->name;
-				item_tmp.value= i++;
+				item_tmp.value= i;
 				RNA_enum_item_add(&item, &totitem, &item_tmp);
 			}
 		}
@@ -745,11 +745,11 @@
 	
 	/* builtin Keying Sets */
 	i= -1;
-	for (ks= builtin_keyingsets.first; ks; ks= ks->next) {
+	for (ks= builtin_keyingsets.first; ks; ks= ks->next, i--) {
 		/* only show KeyingSet if context is suitable */
 		if (ANIM_keyingset_context_ok_poll(C, ks)) {
 			item_tmp.identifier= item_tmp.name= ks->name;
-			item_tmp.value= i--;
+			item_tmp.value= i;
 			RNA_enum_item_add(&item, &totitem, &item_tmp);
 		}
 	}




More information about the Bf-blender-cvs mailing list