diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-07 11:57:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-07 11:57:26 +0400 |
commit | 044ae5e3c8d8e3ed30366c791a0596392a46689a (patch) | |
tree | ec58df73ee84333e677d4365f28154c7c4df7062 | |
parent | 82a0461361eb2556542f6e951388b3187b0397d2 (diff) |
error pointed out by Jeroen Bakker with the math nodes round function. was incorrectly using the output rather then the input.
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_math.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_math.c b/source/blender/nodes/intern/CMP_nodes/CMP_math.c index 4348fd18759..da17e5fe288 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_math.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_math.c @@ -140,7 +140,7 @@ static void do_math(bNode *node, float *out, float *in, float *in2) break; case 14: /* Round */ { - out[0]= (out[0]<0)?(int)(in[0] - 0.5f):(int)(in[0] + 0.5f); + out[0]= floorf(in[0] + 0.5f); } break; case 15: /* Less Than */ |