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:
authorCampbell Barton <ideasman42@gmail.com>2011-06-07 11:57:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-06-07 11:57:26 +0400
commit044ae5e3c8d8e3ed30366c791a0596392a46689a (patch)
treeec58df73ee84333e677d4365f28154c7c4df7062 /source/blender/nodes/intern/CMP_nodes
parent82a0461361eb2556542f6e951388b3187b0397d2 (diff)
error pointed out by Jeroen Bakker with the math nodes round function. was incorrectly using the output rather then the input.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes')
-rw-r--r--source/blender/nodes/intern/CMP_nodes/CMP_math.c2
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 */