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/BGL.c | |
parent | 8e7b4039247419a34093b06b5a05c2423d2cab05 (diff) |
3rd attempt to commit, metaball fixes and small vector optimization
Diffstat (limited to 'source/blender/python/api2_2x/BGL.c')
-rw-r--r-- | source/blender/python/api2_2x/BGL.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/BGL.c b/source/blender/python/api2_2x/BGL.c index 03d282151a7..1a287528d58 100644 --- a/source/blender/python/api2_2x/BGL.c +++ b/source/blender/python/api2_2x/BGL.c @@ -246,7 +246,7 @@ static PyObject *Buffer_item(PyObject *self, int i) case GL_BYTE: return Py_BuildValue("b", buf->buf.asbyte[i]); case GL_SHORT: return Py_BuildValue("h", buf->buf.asshort[i]); case GL_INT: return Py_BuildValue("i", buf->buf.asint[i]); - case GL_FLOAT: return Py_BuildValue("f", buf->buf.asfloat[i]); + case GL_FLOAT: return PyFloat_FromDouble(buf->buf.asfloat[i]); case GL_DOUBLE: return Py_BuildValue("d", buf->buf.asdouble[i]); } } else { |