From 33fcdf2ada1cddb2c5615009db6bb87d38a89970 Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Mon, 3 Oct 2005 21:05:41 +0000 Subject: Bugfix #2650. Calling ipo.delCurve() with a curve that's not been displayed in the Ipo curve editor caused a segfault. --- source/blender/python/api2_2x/Ipo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/python/api2_2x/Ipo.c') diff --git a/source/blender/python/api2_2x/Ipo.c b/source/blender/python/api2_2x/Ipo.c index f9887812cc3..55f6147012c 100644 --- a/source/blender/python/api2_2x/Ipo.c +++ b/source/blender/python/api2_2x/Ipo.c @@ -954,7 +954,10 @@ static PyObject *Ipo_delCurve( BPy_Ipo * self, PyObject * args ) if( icu->bezt ) MEM_freeN( icu->bezt ); MEM_freeN( icu ); - del_ipoCurve( icu ); + + allspace( REMAKEIPO, 0 ); + EXPP_allqueue( REDRAWIPO, 0 ); + Py_INCREF( Py_None ); return Py_None; } -- cgit v1.2.3