===Python API===
authorKen Hughes <khughes@pacific.edu>
Thu, 6 Jul 2006 18:02:57 +0000 (18:02 +0000)
committerKen Hughes <khughes@pacific.edu>
Thu, 6 Jul 2006 18:02:57 +0000 (18:02 +0000)
Bugfix #4369.  Patch provided by Alberto Torres Ruiz (thanks) which
fixes a bug in EditBone_getRoll().  Thanks!

source/blender/python/api2_2x/Bone.c

index c63ad3d016ab8b1b0f3215c2e5cabf1e5ea3b32b..c18beb17b081ee95b6c6dd8d4c7b777cda13ad63 100644 (file)
@@ -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)