Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2022-01-29 21:09:57 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2022-01-29 21:14:26 +0300
commitc9d35ee07c9d0d12328a5b7b70100fb06a11184e (patch)
treeba8884b73729352bb76e6a04e5a37511b1c454db /source/blender/nodes
parent544a0f2880ffc31dcbb8df39a249945f390698bb (diff)
Fix: Eevee: Float Curve node causes issues with compiled shader
This fixes a regression from rBa0edee712a79239133ff840f911f6416d4c41855. Issue being the curve map not being initialized in the GPU shader function. Fixes T95221
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_curves.cc1
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 bce59a60033..9ca9192e821 100644
--- a/source/blender/nodes/shader/nodes/node_shader_curves.cc
+++ b/source/blender/nodes/shader/nodes/node_shader_curves.cc
@@ -344,6 +344,7 @@ static int gpu_shader_curve_float(GPUMaterial *mat,
CurveMapping *cumap = (CurveMapping *)node->storage;
+ BKE_curvemapping_init(cumap);
BKE_curvemapping_table_F(cumap, &array, &size);
GPUNodeLink *tex = GPU_color_band(mat, size, array, &layer);