diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-10-04 01:05:41 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-10-04 01:05:41 +0400 |
commit | 33fcdf2ada1cddb2c5615009db6bb87d38a89970 (patch) | |
tree | ca201a03695cc065228f6d5e074e93e0379c83e3 /source/blender/python/api2_2x/Ipo.c | |
parent | 7c199946ec13db309b79797358cb8308943ed3cf (diff) |
Bugfix #2650.
Calling ipo.delCurve() with a curve that's not been displayed in the
Ipo curve editor caused a segfault.
Diffstat (limited to 'source/blender/python/api2_2x/Ipo.c')
-rw-r--r-- | source/blender/python/api2_2x/Ipo.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |