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
This commit is contained in:
Campbell Barton 2008-05-26 20:43:35 +00:00
parent a2298cb980
commit c0a40125bb

@ -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