Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2011-08-21 17:25:56 +0400
committerJoshua Leung <aligorith@gmail.com>2011-08-21 17:25:56 +0400
commitee938c3be861d55ceea217ff09c5f42c89b956c6 (patch)
tree05fc927016ce3e8f83942198bc14fabe88e6786e /source/blender/editors/armature/poselib.c
parentbe25346da68be9027757bef101562987483afd1c (diff)
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.
Diffstat (limited to 'source/blender/editors/armature/poselib.c')
-rw-r--r--source/blender/editors/armature/poselib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/armature/poselib.c b/source/blender/editors/armature/poselib.c
index ff6deb6a836..864eaa3bdbd 100644
--- a/source/blender/editors/armature/poselib.c
+++ b/source/blender/editors/armature/poselib.c
@@ -906,11 +906,11 @@ static void poselib_keytag_pose (bContext *C, Scene *scene, tPoseLib_PreviewData
/* 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);