From 96c6457b26f36bd80a8b8d65b76a90c994f6d25f Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Thu, 6 Jul 2006 18:02:57 +0000 Subject: ===Python API=== Bugfix #4369. Patch provided by Alberto Torres Ruiz (thanks) which fixes a bug in EditBone_getRoll(). Thanks! --- source/blender/python/api2_2x/Bone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/python/api2_2x/Bone.c') 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) -- cgit v1.2.3