From fe29a3c64bbf2db87f9a6717c4a7a6b89a765d5b Mon Sep 17 00:00:00 2001 From: Joseph Gilbert Date: Tue, 22 Nov 2005 19:23:26 +0000 Subject: A few more python 2.4 macros to covert to 2.3 compatible code. --- source/blender/python/api2_2x/Armature.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'source/blender/python/api2_2x/Armature.c') diff --git a/source/blender/python/api2_2x/Armature.c b/source/blender/python/api2_2x/Armature.c index eecd84cd5e6..23fe3a4158b 100644 --- a/source/blender/python/api2_2x/Armature.c +++ b/source/blender/python/api2_2x/Armature.c @@ -551,9 +551,9 @@ AttributeError: static PyObject *Armature_getMirrorEdit(BPy_Armature *self, void *closure) { if (self->armature->flag & ARM_MIRROR_EDIT) - Py_RETURN_TRUE; + return EXPP_incr_ret(Py_True); else - Py_RETURN_FALSE; + return EXPP_incr_ret(Py_False); } //------------------------Armature.mirrorEdit (setter) static int Armature_setMirrorEdit(BPy_Armature *self, PyObject *value, void *closure) @@ -686,9 +686,9 @@ ValueError: static PyObject *Armature_getDrawNames(BPy_Armature *self, void *closure) { if (self->armature->flag & ARM_DRAWNAMES) - Py_RETURN_TRUE; + return EXPP_incr_ret(Py_True); else - Py_RETURN_FALSE; + return EXPP_incr_ret(Py_False); } //------------------------Armature.drawNames (setter) static int Armature_setDrawNames(BPy_Armature *self, PyObject *value, void *closure) @@ -714,9 +714,9 @@ AttributeError: static PyObject *Armature_getDrawAxes(BPy_Armature *self, void *closure) { if (self->armature->flag & ARM_DRAWAXES) - Py_RETURN_TRUE; + return EXPP_incr_ret(Py_True); else - Py_RETURN_FALSE; + return EXPP_incr_ret(Py_False); } //------------------------Armature.drawAxes (setter) static int Armature_setDrawAxes(BPy_Armature *self, PyObject *value, void *closure) @@ -742,9 +742,9 @@ AttributeError: static PyObject *Armature_getDelayDeform(BPy_Armature *self, void *closure) { if (self->armature->flag & ARM_DELAYDEFORM) - Py_RETURN_TRUE; + return EXPP_incr_ret(Py_True); else - Py_RETURN_FALSE; + return EXPP_incr_ret(Py_False); } //------------------------Armature.delayDeform (setter) static int Armature_setDelayDeform(BPy_Armature *self, PyObject *value, void *closure) @@ -770,9 +770,9 @@ AttributeError: static PyObject *Armature_getRestPosition(BPy_Armature *self, void *closure) { if (self->armature->flag & ARM_RESTPOS) - Py_RETURN_TRUE; + return EXPP_incr_ret(Py_True); else - Py_RETURN_FALSE; + return EXPP_incr_ret(Py_False); } //------------------------Armature.restPosition (setter) static int Armature_setRestPosition(BPy_Armature *self, PyObject *value, void *closure) @@ -798,9 +798,9 @@ AttributeError: static PyObject *Armature_getEnvelopes(BPy_Armature *self, void *closure) { if (self->armature->deformflag & ARM_DEF_ENVELOPE) - Py_RETURN_TRUE; + return EXPP_incr_ret(Py_True); else - Py_RETURN_FALSE; + return EXPP_incr_ret(Py_False); } //------------------------Armature.envelopes (setter) static int Armature_setEnvelopes(BPy_Armature *self, PyObject *value, void *closure) @@ -826,9 +826,9 @@ AttributeError: static PyObject *Armature_getVertexGroups(BPy_Armature *self, void *closure) { if (self->armature->deformflag & ARM_DEF_VGROUP) - Py_RETURN_TRUE; + return EXPP_incr_ret(Py_True); else - Py_RETURN_FALSE; + return EXPP_incr_ret(Py_False); } //------------------------Armature.vertexGroups (setter) static int Armature_setVertexGroups(BPy_Armature *self, PyObject *value, void *closure) -- cgit v1.2.3