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:
authorCharlie Jolly <charlie>2021-11-04 16:40:38 +0300
committerCharlie Jolly <mistajolly@gmail.com>2021-11-04 16:40:42 +0300
commitb5162638c58397f32e766882fa101ab683f455a5 (patch)
treeb51ad90a428d288d2947e3446eb0f1b4a8744c86
parent80a46955d8212f01b77215ab12d479d934e305f4 (diff)
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
-rw-r--r--source/blender/nodes/NOD_math_functions.hh2
1 files changed, 1 insertions, 1 deletions
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); });
}