diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2005-11-22 22:12:46 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2005-11-22 22:12:46 +0300 |
commit | 3489fdcd06f18671521dca1ce0798a8fe31dbab8 (patch) | |
tree | d2cfade85dc501a6897296bf233cf6b755a09160 /source/blender/python/api2_2x/Armature.c | |
parent | 00f266c651a52027b662f725d081af6b51aae343 (diff) |
Fix for a python boolean macro that shouldn't be there.
Diffstat (limited to 'source/blender/python/api2_2x/Armature.c')
-rw-r--r-- | source/blender/python/api2_2x/Armature.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Armature.c b/source/blender/python/api2_2x/Armature.c index 6c13f903e10..50f0a4c7bdb 100644 --- a/source/blender/python/api2_2x/Armature.c +++ b/source/blender/python/api2_2x/Armature.c @@ -133,6 +133,7 @@ static PyObject *BonesDict_new(PyTypeObject *type, PyObject *args, PyObject *kwd if (py_BonesDict->editBoneDict == NULL) goto RuntimeError; + py_BonesDict->editDict = NULL; py_BonesDict->editmode_flag = 0; return (PyObject*)py_BonesDict; @@ -523,9 +524,9 @@ static PyObject *Armature_saveChanges(BPy_Armature *self) static PyObject *Armature_getAutoIK(BPy_Armature *self, void *closure) { if (self->armature->flag & ARM_AUTO_IK) - Py_RETURN_TRUE; + return EXPP_incr_ret(Py_True); else - Py_RETURN_FALSE; + return EXPP_incr_ret(Py_False); } //------------------------Armature.autoIK (setter) static int Armature_setAutoIK(BPy_Armature *self, PyObject *value, void *closure) |