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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-03-03 16:20:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-03-03 16:20:18 +0300
commitca7b6e2cd03c51b59b72dccda6fb5acb38bc8e07 (patch)
treee0c2bf6c0e3340a350344a6514ca92631de5887d /source/blender/editors/animation
parent58bf4b1ab59629c19dd82e060b9d19009bbd3cc3 (diff)
fix for more crashes with baked fcurves
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/keyframes_general.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/animation/keyframes_general.c b/source/blender/editors/animation/keyframes_general.c
index 1d9c251d205..ae2c617bc80 100644
--- a/source/blender/editors/animation/keyframes_general.c
+++ b/source/blender/editors/animation/keyframes_general.c
@@ -372,6 +372,9 @@ void sample_fcurve (FCurve *fcu)
tempFrameValCache *value_cache, *fp;
int sfra, range;
int i, n, nIndex;
+
+ if(fcu->bezt==NULL) /* ignore baked */
+ return NULL;
/* find selected keyframes... once pair has been found, add keyframes */
for (i=0, bezt=fcu->bezt; i < fcu->totvert; i++, bezt++) {