diff options
Diffstat (limited to 'source/blender/src/editipo.c')
-rw-r--r-- | source/blender/src/editipo.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c index 98502c1f226..95e998d3496 100644 --- a/source/blender/src/editipo.c +++ b/source/blender/src/editipo.c @@ -2893,8 +2893,20 @@ void common_insertkey(void) actname= "Object"; /* all curves in ipo deselect */ - if(base->object->ipo) { - icu= base->object->ipo->curve.first; + if(base->object->ipo || base->object->action) { + 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; |