diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2005-05-12 09:45:13 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2005-05-12 09:45:13 +0400 |
commit | 55cf304e995ff3e1ed69ff74bf09eee524189b0d (patch) | |
tree | 52a92988bcbb2a19ca4796d080eb309776be38ac /source/blender/python/api2_2x/CurNurb.c | |
parent | 516e21459c2735ef778f31ebd853f70893d33b2c (diff) |
bugfix: #2254 Curve.appendPoint() gives segfault in PySequence_Check().
Argument tuple not built correctly for CurNurb_appendPointToNurb().
Diffstat (limited to 'source/blender/python/api2_2x/CurNurb.c')
-rw-r--r-- | source/blender/python/api2_2x/CurNurb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/CurNurb.c b/source/blender/python/api2_2x/CurNurb.c index 81d1de36eec..7dcbf142737 100644 --- a/source/blender/python/api2_2x/CurNurb.c +++ b/source/blender/python/api2_2x/CurNurb.c @@ -400,8 +400,11 @@ PyObject *CurNurb_appendPointToNurb( Nurb * nurb, PyObject * args ) /* do we have a list of four floats or a BezTriple? - */ - PyArg_ParseTuple( args, "O", &pyOb ); + */ + if( !PyArg_ParseTuple( args, "O", &pyOb )) + return( EXPP_ReturnPyObjError + ( PyExc_RuntimeError, + "Internal error parsing arguments" ) ); if( BezTriple_CheckPyObject( pyOb ) ) { BezTriple *tmp; |