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/BGL.c
parent8e7b4039247419a34093b06b5a05c2423d2cab05 (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.c2
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 {