diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-05-05 09:10:35 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-05-05 09:10:35 +0400 |
commit | df8cb37e1eeac4b846459378859f7eb8ff369e06 (patch) | |
tree | 1355bb4955f2f376a04578e035165d2922f9b6fe | |
parent | 554e2fe119572920a73d704de9d0c9ba80502495 (diff) |
AutoKey Avail was also not working correctly for Object with ObActions.
-rwxr-xr-x | source/blender/src/transform_conversions.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/source/blender/src/transform_conversions.c b/source/blender/src/transform_conversions.c index c76f545ee8f..487592160ac 100755 --- a/source/blender/src/transform_conversions.c +++ b/source/blender/src/transform_conversions.c @@ -2323,9 +2323,22 @@ void special_aftertrans_update(TransInfo *t) actname= "Object"; if(U.uiflag & USER_KEYINSERTAVAI) { - if(base->object->ipo) { + if(base->object->ipo || base->object->action) { ID* id= (ID *)(base->object); - icu= base->object->ipo->curve.first; + + if (base->object->ipo) { + icu= base->object->ipo->curve.first; + } + else { + bActionChannel *achan; + achan= get_action_channel(base->object->action, actname); + + if (achan && achan->ipo) + icu= achan->ipo->curve.first; + else + icu= NULL; + } + while(icu) { icu->flag &= ~IPO_SELECT; if (U.uiflag & USER_KEYINSERTNEED) |