baked fcurves would crash on deleting in the graph editor

This commit is contained in:
Campbell Barton 2010-03-03 12:53:26 +00:00
parent 74faed26fc
commit 58bf4b1ab5

@ -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) {