Python API: add material to uniforms from gpu.export_shader.
Reviewed By: brecht Differential Revision: https://developer.blender.org/D1457
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user