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:
authorKen Hughes <khughes@pacific.edu>2006-07-06 22:02:57 +0400
committerKen Hughes <khughes@pacific.edu>2006-07-06 22:02:57 +0400
commit96c6457b26f36bd80a8b8d65b76a90c994f6d25f (patch)
treec56e573959ae59f26c1ff200a486690d05be73ea /source/blender/python/api2_2x/Bone.c
parent86ce9c71b644be086aa02d07e81a43fb67948745 (diff)
===Python API===
Bugfix #4369. Patch provided by Alberto Torres Ruiz (thanks) which fixes a bug in EditBone_getRoll(). Thanks!
Diffstat (limited to 'source/blender/python/api2_2x/Bone.c')
-rw-r--r--source/blender/python/api2_2x/Bone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Bone.c b/source/blender/python/api2_2x/Bone.c
index c63ad3d016a..c18beb17b08 100644
--- a/source/blender/python/api2_2x/Bone.c
+++ b/source/blender/python/api2_2x/Bone.c
@@ -146,9 +146,9 @@ AttributeError:
static PyObject *EditBone_getRoll(BPy_EditBone *self, void *closure)
{
if (self->editbone){
- return Py_BuildValue("f", PyFloat_FromDouble((self->editbone->roll * (180/Py_PI))));
+ return PyFloat_FromDouble((self->editbone->roll * (180/Py_PI)));
}else{
- return Py_BuildValue("f", PyFloat_FromDouble((self->roll * (180/Py_PI))));
+ return PyFloat_FromDouble((self->roll * (180/Py_PI)));
}
}
//------------------------EditBone.roll (set)