From stable
Revision: 11237
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11237
Author: campbellbarton
Date: 2007-07-12 13:05:31 +0200 (Thu, 12 Jul 2007)
Log Message:
-----------
PyObject_IsTrue was missing a check for an error return value in many cases.
This commit is contained in:
@@ -352,12 +352,12 @@ static int LibBlockSeq_setActive(BPy_LibBlockSeq *self, PyObject *value)
|
||||
|
||||
static int LibBlockSeq_setTag(BPy_LibBlockSeq *self, PyObject *value)
|
||||
{
|
||||
int param = PyObject_IsTrue( value );
|
||||
ID *id;
|
||||
int param = PyObject_IsTrue( value );
|
||||
|
||||
if( param == -1 )
|
||||
return EXPP_ReturnIntError( PyExc_TypeError,
|
||||
"expected int argument in range [0,1]" );
|
||||
"expected True/False or 0/1" );
|
||||
|
||||
id = (ID *)wich_libbase(G.main, self->type)->first;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user