diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-05-27 00:43:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-05-27 00:43:35 +0400 |
commit | c0a40125bb89791e54468219e30e986b0291d29d (patch) | |
tree | ca4dfef3bd5ad4d3097416b18ed54036ad1608cb | |
parent | a2298cb980cc9f5294375cf9b14d68054d5e4ad5 (diff) |
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
-rw-r--r-- | source/blender/src/poseobject.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/src/poseobject.c b/source/blender/src/poseobject.c index 4c97a8fdbdf..dcceea971f7 100644 --- a/source/blender/src/poseobject.c +++ b/source/blender/src/poseobject.c @@ -659,6 +659,10 @@ void pose_copy_menu(void) 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 @@ void pose_copy_menu(void) } 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 |