diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2022-01-31 20:56:40 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2022-01-31 20:56:40 +0300 |
commit | 716d8436f0649fd2a55acc0b3738f1d359c9c597 (patch) | |
tree | 8228426294a61595343cf174c73d348c73244361 | |
parent | 5edb924e57348ce69de8a977258589b9a7a8de02 (diff) |
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
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_curves.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_curves.cc b/source/blender/nodes/shader/nodes/node_shader_curves.cc index 9ca9192e821..6570ffcac83 100644 --- a/source/blender/nodes/shader/nodes/node_shader_curves.cc +++ b/source/blender/nodes/shader/nodes/node_shader_curves.cc @@ -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); |