diff options
author | Ton Roosendaal <ton@blender.org> | 2008-10-12 17:16:23 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-10-12 17:16:23 +0400 |
commit | 23a02bbead6d423bba1226bd84d4b2248af7ad39 (patch) | |
tree | 9ade3b807d6b47ef6b7bd1b784cb9d61733d7861 | |
parent | 3110f63162b3194c0fd059f8e8cd2096cb97df74 (diff) |
Bugfix, studio report by Pablo Venomgfx
- insert key crashed when object ipo was in action, but action got unlinked
from object
-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; + } } } } |