[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39583] branches/soc-2011-pepper/source/ blender/editors/armature/poselib.c: Bugfix [#28309] pose lib too many keyframes in automatic keyframing

Joshua Leung aligorith at gmail.com
Sun Aug 21 15:25:56 CEST 2011


Revision: 39583
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39583
Author:   aligorith
Date:     2011-08-21 13:25:56 +0000 (Sun, 21 Aug 2011)
Log Message:
-----------
Bugfix [#28309] pose lib too many keyframes in automatic keyframing
mode

Pose Library was checking in wrong place for what was selected and
what wasn't when determining what should get autokeyed.

Modified Paths:
--------------
    branches/soc-2011-pepper/source/blender/editors/armature/poselib.c

Modified: branches/soc-2011-pepper/source/blender/editors/armature/poselib.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/armature/poselib.c	2011-08-21 13:25:19 UTC (rev 39582)
+++ branches/soc-2011-pepper/source/blender/editors/armature/poselib.c	2011-08-21 13:25:56 UTC (rev 39583)
@@ -906,11 +906,11 @@
 	
 	/* start tagging/keying */
 	for (agrp= act->groups.first; agrp; agrp= agrp->next) {
-		/* only for selected action channels */
-		if (agrp->flag & AGRP_SELECTED) {
-			pchan= get_pose_channel(pose, agrp->name);
-			
-			if (pchan) {
+		/* only for selected bones unless there aren't any selected, in which case all are included  */
+		pchan= get_pose_channel(pose, agrp->name);
+		
+		if (pchan) {
+			if ( (pld->selcount == 0) || ((pchan->bone) && (pchan->bone->flag & BONE_SELECTED)) ) {
 				if (autokey) {
 					/* add datasource override for the PoseChannel, to be used later */
 					ANIM_relative_keyingset_add_source(&dsources, &pld->ob->id, &RNA_PoseBone, pchan); 




More information about the Bf-blender-cvs mailing list