- Bugfix #3194: calling curve.appendNurb() with any number of float param

other than 4 or 5 caused segfault (thanks for catching, Cam)
This commit is contained in:
Ken Hughes 2005-10-16 16:39:11 +00:00
parent 6418c07905
commit 0ea46ec202

@ -561,15 +561,15 @@ PyObject *CurNurb_appendPointToNurb( Nurb * nurb, PyObject * args )
makeknots( nurb, 1, nurb->flagu >> 1 );
} else if( size == 3 ) { /* 3 xyz coords */
printf( "\nNot Yet Implemented!\n" );
} else {
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected a sequence of 4 or 5 floats" );
}
} else {
/* bail with error */
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected a sequence of 4 (or optionaly 5) floats\n" );
"expected a sequence of 4 or 5 floats" );
}