diff options
-rw-r--r-- | intern/cycles/kernel/svm/svm_wireframe.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/svm/svm_wireframe.h b/intern/cycles/kernel/svm/svm_wireframe.h index efe09051403..9ecb81847d7 100644 --- a/intern/cycles/kernel/svm/svm_wireframe.h +++ b/intern/cycles/kernel/svm/svm_wireframe.h @@ -45,9 +45,9 @@ __device void svm_node_wireframe(KernelGlobals *kg, ShaderData *sd, float *stack /* Calculate wireframe */ #ifdef __HAIR__ - if (sd->segment == ~0) { + if (sd->prim != ~0 && sd->segment == ~0) { #else - { + if (sd->prim != ~0) { #endif float3 Co[3]; float pixelwidth = 1.0f; |