[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14987] trunk/blender/source/blender/src/ poseobject.c: bugfix, copy posebone constraints didnt update properly, canceling transform would not reset the bone back to its original state.
Campbell Barton
ideasman42 at gmail.com
Mon May 26 22:43:35 CEST 2008
Revision: 14987
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14987
Author: campbellbarton
Date: 2008-05-26 22:43:35 +0200 (Mon, 26 May 2008)
Log Message:
-----------
bugfix, copy posebone constraints didnt update properly, canceling transform would not reset the bone back to its original state. need to set teh flag "ob->pose->flag |=
POSE_RECALC", which is alredy done on adding a constraint.
back
to
Modified Paths:
--------------
trunk/blender/source/blender/src/poseobject.c
Modified: trunk/blender/source/blender/src/poseobject.c
===================================================================
--- trunk/blender/source/blender/src/poseobject.c 2008-05-26 20:36:51 UTC (rev 14986)
+++ trunk/blender/source/blender/src/poseobject.c 2008-05-26 20:43:35 UTC (rev 14987)
@@ -659,6 +659,10 @@
free_constraints(&pchan->constraints);
copy_constraints(&pchan->constraints, &pchanact->constraints);
pchan->constflag = pchanact->constflag;
+
+ if (ob->pose) {
+ ob->pose->flag |= POSE_RECALC;
+ }
}
break;
case 6: /* Transform Locks */
@@ -741,6 +745,10 @@
}
BLI_freelistN(&const_copy);
update_pose_constraint_flags(ob->pose); /* we could work out the flags but its simpler to do this */
+
+ if (ob->pose) {
+ ob->pose->flag |= POSE_RECALC;
+ }
}
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA); // and all its relations
More information about the Bf-blender-cvs
mailing list