Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2007-04-28 09:09:09 +0400
committerKen Hughes <khughes@pacific.edu>2007-04-28 09:09:09 +0400
commit705671ebaac3648f67ebc3c12b441e0a2b09df2d (patch)
tree26049fc4961cf88ba64fa493a50307de31b2e43e /source
parent836ccb8ab0d15d1c3e25816a00b5872e9eb81e90 (diff)
Python API
---------- Draw.c: Fix some gcc warnings Bone.c: Bone_getAllChildren() was calling EXPP_incr_ret() but not returning the value
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/Bone.c2
-rw-r--r--source/blender/python/api2_2x/Draw.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Bone.c b/source/blender/python/api2_2x/Bone.c
index cd2e3bea099..feb43cc7405 100644
--- a/source/blender/python/api2_2x/Bone.c
+++ b/source/blender/python/api2_2x/Bone.c
@@ -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)
diff --git a/source/blender/python/api2_2x/Draw.c b/source/blender/python/api2_2x/Draw.c
index 9ff57f247f1..331415dc849 100644
--- a/source/blender/python/api2_2x/Draw.c
+++ b/source/blender/python/api2_2x/Draw.c
@@ -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);