diff options
Diffstat (limited to 'intern/cycles/kernel/svm/svm.h')
-rw-r--r-- | intern/cycles/kernel/svm/svm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/svm/svm.h b/intern/cycles/kernel/svm/svm.h index 624ef810e85..8fd41ec8531 100644 --- a/intern/cycles/kernel/svm/svm.h +++ b/intern/cycles/kernel/svm/svm.h @@ -264,11 +264,11 @@ ccl_device void svm_eval_nodes(KernelGlobals kg, svm_node_mix_closure(sd, stack, node); break; case NODE_JUMP_IF_ZERO: - if (stack_load_float(stack, node.z) == 0.0f) + if (stack_load_float(stack, node.z) <= 0.0f) offset += node.y; break; case NODE_JUMP_IF_ONE: - if (stack_load_float(stack, node.z) == 1.0f) + if (stack_load_float(stack, node.z) >= 1.0f) offset += node.y; break; case NODE_GEOMETRY: |