diff options
author | Sebastian Ullrich <> | 2016-05-21 17:13:09 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-21 17:46:42 +0300 |
commit | 6bd248cd65405854abafe9fb2201f3785d5259af (patch) | |
tree | 040e3782cc846f100ce9611aff339c50f1d8488f /source/blender/python/intern | |
parent | 4bbc0731a0ad144756bc403308052e9744939a86 (diff) |
Python API: add material to uniforms from gpu.export_shader.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D1457
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r-- | source/blender/python/intern/gpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/intern/gpu.c b/source/blender/python/intern/gpu.c index 66c1ddcc352..c3bb588f7eb 100644 --- a/source/blender/python/intern/gpu.c +++ b/source/blender/python/intern/gpu.c @@ -261,6 +261,9 @@ static PyObject *GPU_export_shader(PyObject *UNUSED(self), PyObject *args, PyObj if (uniform->lamp) { PY_DICT_ADD_ID(dict, uniform, lamp); } + if (uniform->material) { + PY_DICT_ADD_ID(dict, uniform, material); + } if (uniform->image) { PY_DICT_ADD_ID(dict, uniform, image); } |