diff options
-rw-r--r-- | source/blender/src/keyframing.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/src/keyframing.c b/source/blender/src/keyframing.c index c5777b9c2a6..e61d8140183 100644 --- a/source/blender/src/keyframing.c +++ b/source/blender/src/keyframing.c @@ -1347,10 +1347,12 @@ static void commonkey_context_getv3d (ListBase *sources, bKeyingContext **ksc) if (achan && achan->ipo) cks->ipo= achan->ipo; } - - /* deselect all ipo-curves */ - for (icu= cks->ipo->curve.first; icu; icu= icu->next) { - icu->flag &= ~IPO_SELECT; + /* cks->ipo can be NULL while editing */ + if(cks->ipo) { + /* deselect all ipo-curves */ + for (icu= cks->ipo->curve.first; icu; icu= icu->next) { + icu->flag &= ~IPO_SELECT; + } } } } |