[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17944] branches/animsys2/source/blender/ src/poseobject.c: AnimSys2: Bugfix for copying transforms on bones with keyframes.
Joshua Leung
aligorith at gmail.com
Fri Dec 19 12:17:14 CET 2008
Revision: 17944
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17944
Author: aligorith
Date: 2008-12-19 12:17:14 +0100 (Fri, 19 Dec 2008)
Log Message:
-----------
AnimSys2: Bugfix for copying transforms on bones with keyframes.
The calls were missing BONE_UNKEYED flags, so the options looked like they were not working.
Modified Paths:
--------------
branches/animsys2/source/blender/src/poseobject.c
Modified: branches/animsys2/source/blender/src/poseobject.c
===================================================================
--- branches/animsys2/source/blender/src/poseobject.c 2008-12-19 09:47:50 UTC (rev 17943)
+++ branches/animsys2/source/blender/src/poseobject.c 2008-12-19 11:17:14 UTC (rev 17944)
@@ -722,14 +722,20 @@
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 @@
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 @@
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 @@
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;
More information about the Bf-blender-cvs
mailing list