error pointed out by Jeroen Bakker with the math nodes round function. was incorrectly using the output rather then the input.
This commit is contained in:
parent
82a0461361
commit
044ae5e3c8
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user