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
diff options
context:
space:
mode:
authorJoseph Gilbert <ascotan@gmail.com>2005-11-22 22:12:46 +0300
committerJoseph Gilbert <ascotan@gmail.com>2005-11-22 22:12:46 +0300
commit3489fdcd06f18671521dca1ce0798a8fe31dbab8 (patch)
treed2cfade85dc501a6897296bf233cf6b755a09160 /source/blender/python/api2_2x/Armature.c
parent00f266c651a52027b662f725d081af6b51aae343 (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.c5
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)