diff options
author | Juho Vepsalainen <bebraw@gmail.com> | 2008-06-26 21:08:07 +0400 |
---|---|---|
committer | Juho Vepsalainen <bebraw@gmail.com> | 2008-06-26 21:08:07 +0400 |
commit | a8f00246bae68a08562832fbb010ff674e293599 (patch) | |
tree | e3a6c7d9c6a4067b31d763eeff2beef937429cfc | |
parent | cef2867fef5031eae686ebd88095a2e1bede6f29 (diff) |
Fix for bug [#13651] Convertor->Math->Divide broken
Changed the if statement to catch zero case properly.
-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 d00ce18a44f..421c1343df7 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_math.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_math.c @@ -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]; |