Fix T80034 Crash using material panel on 2.91.0 alpha

This was caused by a NULL name.
This commit is contained in:
Clément Foucault
2020-08-23 14:48:44 +02:00
parent e74ba9e09e
commit e4932d1167

View File

@@ -235,7 +235,7 @@ void GPU_material_uniform_buffer_create(GPUMaterial *material, ListBase *inputs)
#ifndef NDEBUG
const char *name = material->name;
#else
const char *name = NULL;
const char *name = "Material";
#endif
material->ubo = GPU_uniformbuf_create_from_list(inputs, name);
}