Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-01-21 14:26:24 +0300
committerJoshua Leung <aligorith@gmail.com>2008-01-21 14:26:24 +0300
commit173830a7fa45cd6b4ebff002519ce8e8932c473f (patch)
treeddc925a47f466756a7ddf8939cc09fe061512d2e /source/blender/src/editipo.c
parent1db590092fc6720d976e2b979a87436c68391207 (diff)
== Action/Pose Groups - Keyframing Integration ==
Now, when inserting keyframes (either IKEY or AutoKeying), if an ActionChannel has been newly created, it will get assigned to an Action-Group with the same name as the Bone-Group that the bone it represents belongs to.
Diffstat (limited to 'source/blender/src/editipo.c')
-rw-r--r--source/blender/src/editipo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c
index 612d9f59b92..c8e1ae4a3cd 100644
--- a/source/blender/src/editipo.c
+++ b/source/blender/src/editipo.c
@@ -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) {
+ /* 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);