Python API

----------
Draw.c: Fix some gcc warnings
Bone.c: Bone_getAllChildren() was calling EXPP_incr_ret() but not returning
	the value
This commit is contained in:
Ken Hughes
2007-04-28 05:09:09 +00:00
parent 836ccb8ab0
commit 705671ebaa
2 changed files with 4 additions and 2 deletions

View File

@@ -915,7 +915,7 @@ static PyObject *Bone_getAllChildren(BPy_Bone *self)
if (self->bone->childbase.first)
if (!PyBone_ChildrenAsList(list, &self->bone->childbase))
return NULL;
EXPP_incr_ret(list);
return EXPP_incr_ret(list);
}
//------------------ATTRIBUTE IMPLEMENTATIONS-----------------------------
//------------------------Bone.name (get)

View File

@@ -735,11 +735,13 @@ void BPY_spacescript_do_pywin_event( SpaceScript * sc, unsigned short event,
}
}
static void exec_but_callback(PyObject *callback, uiBut *but)
static void exec_but_callback(void *pyobj, void *data)
{
PyObject *result;
PyObject * pyvalue;
uiBut *but = (uiBut *)data;
PyObject *arg = PyTuple_New( 2 );
PyObject *callback = (PyObject *)pyobj;
double value = ui_get_but_val(but);