Fix: Unutilized curve mapping in vector shader node

This could result in a shading errors is some cases such as undo.

Follow up to rB1405787142d1f87f18631114167675ed145f6d75
This commit is contained in:
Aaron Carlisle 2022-01-31 12:56:40 -05:00
parent 5edb924e57
commit 716d8436f0
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ static int gpu_shader_curve_vec(GPUMaterial *mat,
CurveMapping *cumap = (CurveMapping *)node->storage;
BKE_curvemapping_init(cumap);
BKE_curvemapping_table_RGBA(cumap, &array, &size);
GPUNodeLink *tex = GPU_color_band(mat, size, array, &layer);