diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-09-30 18:14:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-09-30 18:14:49 +0400 |
commit | 32b1e2383bf50ebe30c26618496ec966620d1d23 (patch) | |
tree | 373e50c9d290f46ba33096821cf17ba54003d8ed /source/blender/python/api2_2x/Bone.c | |
parent | 8e7b4039247419a34093b06b5a05c2423d2cab05 (diff) |
3rd attempt to commit, metaball fixes and small vector optimization
Diffstat (limited to 'source/blender/python/api2_2x/Bone.c')
-rw-r--r-- | source/blender/python/api2_2x/Bone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Bone.c b/source/blender/python/api2_2x/Bone.c index bed859a5a78..0d6594e2aef 100644 --- a/source/blender/python/api2_2x/Bone.c +++ b/source/blender/python/api2_2x/Bone.c @@ -1122,7 +1122,7 @@ static int Bone_setMatrix(BPy_Bone *self, PyObject *value, void *closure) //------------------------Bone.length (get) static PyObject *Bone_getLength(BPy_Bone *self, void *closure) { - return Py_BuildValue("f", self->bone->length); + return PyFloat_FromDouble(self->bone->length); } //------------------------Bone.length (set) static int Bone_setLength(BPy_Bone *self, PyObject *value, void *closure) |