== Action/Pose Groups - Keyframing Integration ==
[blender.git] / source / blender / src / editipo.c
index 612d9f59b9252e3fe9a7346da2af66a48731bf43..c8e1ae4a3cda7f987fbe7085d17d69d5a45b13ab 100644 (file)
@@ -1802,6 +1802,10 @@ Ipo *verify_ipo(ID *from, short blocktype, char *actname, char *constname, char
                achan= verify_action_channel(ob->action, actname);
                
                if(achan) {
                achan= verify_action_channel(ob->action, actname);
                
                if(achan) {
+                       /* automatically assign achan to act-group based on pchan's grouping */
+                       if (blocktype == ID_PO)
+                       verify_pchan2achan_grouping(ob->action, ob->pose, actname);
+                       
                        /* constraint exception */
                        if(blocktype==ID_CO) {
                                bConstraintChannel *conchan= verify_constraint_channel(&achan->constraintChannels, constname);
                        /* constraint exception */
                        if(blocktype==ID_CO) {
                                bConstraintChannel *conchan= verify_constraint_channel(&achan->constraintChannels, constname);