1
1

GPUMaterial: Remove the max attribute check

This is needed to make the GPU_attribute used as generic input mechanism.
This commit is contained in:
2022-07-01 10:10:19 +02:00
parent ccbf9ee482
commit 4cba209edd

View File

@@ -378,7 +378,7 @@ static GPUMaterialAttribute *gpu_node_graph_add_attribute(GPUNodeGraph *graph,
}
/* Add new requested attribute if it's within GPU limits. */
if (attr == NULL && num_attributes < GPU_MAX_ATTR) {
if (attr == NULL) {
attr = MEM_callocN(sizeof(*attr), __func__);
attr->type = type;
STRNCPY(attr->name, name);