Autokey option crashed on Transform... was still using defines from before

the object-action-ipo-nla recode 2 weeks ago.
This commit is contained in:
Ton Roosendaal 2005-10-22 15:03:29 +00:00
parent 5e8131309e
commit fc169264cd
2 changed files with 15 additions and 10 deletions

@ -1583,6 +1583,11 @@ Ipo *verify_ipo(ID *from, short blocktype, char *actname, char *constname)
Object *ob= (Object *)from;
bActionChannel *achan;
if(GS(from->name)!=ID_OB) {
printf("called ipo system for action with wrong base pointer\n");
return NULL;
}
if(ob->action==NULL)
ob->action= add_empty_action(blocktype);

@ -1633,18 +1633,18 @@ void special_aftertrans_update(TransInfo *t)
for (pchan=pose->chanbase.first; pchan; pchan=pchan->next){
if (pchan->flag & POSE_KEY){
insertkey(&act->id, ID_AC, pchan->name, NULL, AC_SIZE_X);
insertkey(&act->id, ID_AC, pchan->name, NULL, AC_SIZE_Y);
insertkey(&act->id, ID_AC, pchan->name, NULL, AC_SIZE_Z);
insertkey(&ob->id, ID_PO, pchan->name, NULL, AC_SIZE_X);
insertkey(&ob->id, ID_PO, pchan->name, NULL, AC_SIZE_Y);
insertkey(&ob->id, ID_PO, pchan->name, NULL, AC_SIZE_Z);
insertkey(&act->id, ID_AC, pchan->name, NULL, AC_QUAT_W);
insertkey(&act->id, ID_AC, pchan->name, NULL, AC_QUAT_X);
insertkey(&act->id, ID_AC, pchan->name, NULL, AC_QUAT_Y);
insertkey(&act->id, ID_AC, pchan->name, NULL, AC_QUAT_Z);
insertkey(&ob->id, ID_PO, pchan->name, NULL, AC_QUAT_W);
insertkey(&ob->id, ID_PO, pchan->name, NULL, AC_QUAT_X);
insertkey(&ob->id, ID_PO, pchan->name, NULL, AC_QUAT_Y);
insertkey(&ob->id, ID_PO, pchan->name, NULL, AC_QUAT_Z);
insertkey(&act->id, ID_AC, pchan->name, NULL, AC_LOC_X);
insertkey(&act->id, ID_AC, pchan->name, NULL, AC_LOC_Y);
insertkey(&act->id, ID_AC, pchan->name, NULL, AC_LOC_Z);
insertkey(&ob->id, ID_PO, pchan->name, NULL, AC_LOC_X);
insertkey(&ob->id, ID_PO, pchan->name, NULL, AC_LOC_Y);
insertkey(&ob->id, ID_PO, pchan->name, NULL, AC_LOC_Z);
}
}