diff options
Diffstat (limited to 'source/blender/nodes/shader/nodes/node_shader_math.c')
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_math.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_math.c b/source/blender/nodes/shader/nodes/node_shader_math.c index f8d1617887e..70432e04180 100644 --- a/source/blender/nodes/shader/nodes/node_shader_math.c +++ b/source/blender/nodes/shader/nodes/node_shader_math.c @@ -159,7 +159,8 @@ static void node_shader_exec_math(void *UNUSED(data), else { float y_mod_1 = fabsf(fmodf(b, 1.0f)); - /* if input value is not nearly an integer, fall back to zero, nicer than straight rounding */ + /* if input value is not nearly an integer, + * fall back to zero, nicer than straight rounding. */ if (y_mod_1 > 0.999f || y_mod_1 < 0.001f) { r = powf(a, floorf(b + 0.5f)); } |