Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-10-12 17:16:23 +0400
committerTon Roosendaal <ton@blender.org>2008-10-12 17:16:23 +0400
commit23a02bbead6d423bba1226bd84d4b2248af7ad39 (patch)
tree9ade3b807d6b47ef6b7bd1b784cb9d61733d7861 /source
parent3110f63162b3194c0fd059f8e8cd2096cb97df74 (diff)
Bugfix, studio report by Pablo Venomgfx
- insert key crashed when object ipo was in action, but action got unlinked from object
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/keyframing.c10
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;
+ }
}
}
}