diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-28 12:53:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-28 12:53:00 +0400 |
commit | 565fcd8907c4cbd105bef9330e13ccbd893a6f3e (patch) | |
tree | 4654aab3c7dd7ddb8196ed5e6eb0eddd1c3d1d63 /source/blender/python/intern/gpu.c | |
parent | 4b635d16316d12dd4c57e1dcf99092551e6bbe35 (diff) |
fix for error in gpu.export_shader() was missing *4 (only writing 1/4 of the colorband)
Diffstat (limited to 'source/blender/python/intern/gpu.c')
-rw-r--r-- | source/blender/python/intern/gpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/gpu.c b/source/blender/python/intern/gpu.c index 238558b7ad7..1162491ee26 100644 --- a/source/blender/python/intern/gpu.c +++ b/source/blender/python/intern/gpu.c @@ -236,7 +236,7 @@ static PyObject* GPU_export_shader(PyObject* UNUSED(self), PyObject *args, PyObj PY_DICT_ADD_LONG(dict,uniform,texnumber); } if (uniform->texpixels) { - val = PyByteArray_FromStringAndSize((const char *)uniform->texpixels, uniform->texsize); + val = PyByteArray_FromStringAndSize((const char *)uniform->texpixels, uniform->texsize * 4); PyDict_SetItemString(dict, "texpixels", val); Py_DECREF(val); PY_DICT_ADD_LONG(dict,uniform,texsize); |