diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-19 14:17:14 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-19 14:17:14 +0300 |
commit | f52fafae5db0fe02415fea0cb8d0a483edda772f (patch) | |
tree | d45fcc8b744ca8a4bfdc28643dfd6e5b9b233578 | |
parent | 20401c206fc3da048000df25bbb2b87e2741ba72 (diff) |
AnimSys2: Bugfix for copying transforms on bones with keyframes. animsys2
The calls were missing BONE_UNKEYED flags, so the options looked like they were not working.
-rw-r--r-- | source/blender/src/poseobject.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/src/poseobject.c b/source/blender/src/poseobject.c index 52950db73c5..0e786117884 100644 --- a/source/blender/src/poseobject.c +++ b/source/blender/src/poseobject.c @@ -722,14 +722,20 @@ void pose_copy_menu(void) switch (nr) { case 1: /* Local Location */ VECCOPY(pchan->loc, pchanact->loc); + + pchan->bone->flag |= BONE_UNKEYED; break; case 2: /* Local Rotation */ pchan->rotmode= pchanact->rotmode; // TODO: do we really want to do it this way? VECCOPY(pchan->eul, pchanact->eul); QUATCOPY(pchan->quat, pchanact->quat); + + pchan->bone->flag |= BONE_UNKEYED; break; case 3: /* Local Size */ VECCOPY(pchan->size, pchanact->size); + + pchan->bone->flag |= BONE_UNKEYED; break; case 4: /* All Constraints */ { @@ -772,6 +778,8 @@ void pose_copy_menu(void) break; case 9: /* Visual Location */ armature_loc_pose_to_bone(pchan, pchanact->pose_mat[3], pchan->loc); + + pchan->bone->flag |= BONE_UNKEYED; break; case 10: /* Visual Rotation */ { @@ -783,6 +791,8 @@ void pose_copy_menu(void) Mat4ToEul(delta_mat, pchan->eul); else Mat4ToQuat(delta_mat, pchan->quat); + + pchan->bone->flag |= BONE_UNKEYED; } break; case 11: /* Visual Size */ @@ -791,6 +801,8 @@ void pose_copy_menu(void) armature_mat_pose_to_bone(pchan, pchanact->pose_mat, delta_mat); Mat4ToSize(delta_mat, pchan->size); + + pchan->bone->flag |= BONE_UNKEYED; } case 12: /* Rotation mode */ pchan->rotmode= pchanact->rotmode; |