Bugfix #2650.
Calling ipo.delCurve() with a curve that's not been displayed in the Ipo curve editor caused a segfault.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user