From 58bf4b1ab59629c19dd82e060b9d19009bbd3cc3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 3 Mar 2010 12:53:26 +0000 Subject: [PATCH] baked fcurves would crash on deleting in the graph editor --- source/blender/editors/animation/keyframes_general.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/editors/animation/keyframes_general.c b/source/blender/editors/animation/keyframes_general.c index c0d91ab7af8..1d9c251d205 100644 --- a/source/blender/editors/animation/keyframes_general.c +++ b/source/blender/editors/animation/keyframes_general.c @@ -100,6 +100,9 @@ void delete_fcurve_keys(FCurve *fcu) { int i; + if(fcu->bezt==NULL) /* ignore baked curves */ + return; + /* Delete selected BezTriples */ for (i=0; i < fcu->totvert; i++) { if (fcu->bezt[i].f2 & SELECT) {