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:
authorCampbell Barton <ideasman42@gmail.com>2006-09-30 18:14:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-09-30 18:14:49 +0400
commit32b1e2383bf50ebe30c26618496ec966620d1d23 (patch)
tree373e50c9d290f46ba33096821cf17ba54003d8ed /source/blender/python/api2_2x/Bone.c
parent8e7b4039247419a34093b06b5a05c2423d2cab05 (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.c2
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)