Fix for bug [#13651] Convertor->Math->Divide broken
Changed the if statement to catch zero case properly.
This commit is contained in:
parent
cef2867fef
commit
a8f00246ba
|
@ -57,7 +57,7 @@ static void do_math(bNode *node, float *out, float *in, float *in2)
|
|||
break;
|
||||
case 3: /* Divide */
|
||||
{
|
||||
if(in[1]==0) /* We don't want to divide by zero. */
|
||||
if(in2[0]==0) /* We don't want to divide by zero. */
|
||||
out[0]= 0.0;
|
||||
else
|
||||
out[0]= in[0] / in2[0];
|
||||
|
|
Loading…
Reference in New Issue