From b5162638c58397f32e766882fa101ab683f455a5 Mon Sep 17 00:00:00 2001 From: Charlie Jolly Date: Thu, 4 Nov 2021 13:40:38 +0000 Subject: Fix: Geometry Nodes: Math node smoothmax not working Function arguments were incorrect. Noted during @simonthommes live stream. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D13110 --- source/blender/nodes/NOD_math_functions.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/nodes/NOD_math_functions.hh b/source/blender/nodes/NOD_math_functions.hh index 9443be820d1..86ff8cab3e9 100644 --- a/source/blender/nodes/NOD_math_functions.hh +++ b/source/blender/nodes/NOD_math_functions.hh @@ -193,7 +193,7 @@ inline bool try_dispatch_float_math_fl_fl_fl_to_fl(const int operation, Callback case NODE_MATH_SMOOTH_MIN: return dispatch([](float a, float b, float c) { return smoothminf(a, b, c); }); case NODE_MATH_SMOOTH_MAX: - return dispatch([](float a, float b, float c) { return -smoothminf(-a, -b, -c); }); + return dispatch([](float a, float b, float c) { return -smoothminf(-a, -b, c); }); case NODE_MATH_WRAP: return dispatch([](float a, float b, float c) { return wrapf(a, b, c); }); } -- cgit v1.2.3