[Bf-blender-cvs] [c9d35ee07c9] blender-v3.1-release: Fix: Eevee: Float Curve node causes issues with compiled shader

Aaron Carlisle noreply at git.blender.org
Sat Jan 29 19:14:31 CET 2022


Commit: c9d35ee07c9d0d12328a5b7b70100fb06a11184e
Author: Aaron Carlisle
Date:   Sat Jan 29 13:09:57 2022 -0500
Branches: blender-v3.1-release
https://developer.blender.org/rBc9d35ee07c9d0d12328a5b7b70100fb06a11184e

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

===================================================================

M	source/blender/nodes/shader/nodes/node_shader_curves.cc

===================================================================

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);



More information about the Bf-blender-cvs mailing list