Fix T80034 Crash using material panel on 2.91.0 alpha
This was caused by a NULL name.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user