bugfix, copy posebone constraints didnt update properly, canceling transform would...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 26 May 2008 20:43:35 +0000 (20:43 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 26 May 2008 20:43:35 +0000 (20:43 +0000)
POSE_RECALC", which is alredy done on adding a constraint.
back
to

source/blender/src/poseobject.c

index 4c97a8fdbdf20ce7078a04805ca10810ef8abce6..dcceea971f7f30e3299f6ba6cca02fb8bc6384ac 100644 (file)
@@ -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