diff options
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); } |