diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-07 01:27:59 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-07 01:27:59 +0400 |
commit | d68981158b843d2b7c47d6e2e94e64d807dda569 (patch) | |
tree | ea85ec693147536210486c91e537710377accf23 /intern/cycles/kernel/svm/svm_tex_coord.h | |
parent | 4496b9004c69b5bbcdcf7a154de1f88887196a98 (diff) |
Fix cycles crash with normal map node, issue with tangent sign attribute.
Diffstat (limited to 'intern/cycles/kernel/svm/svm_tex_coord.h')
-rw-r--r-- | intern/cycles/kernel/svm/svm_tex_coord.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/svm/svm_tex_coord.h b/intern/cycles/kernel/svm/svm_tex_coord.h index 2f73f7b9d40..a9449c0ded9 100644 --- a/intern/cycles/kernel/svm/svm_tex_coord.h +++ b/intern/cycles/kernel/svm/svm_tex_coord.h @@ -244,7 +244,7 @@ __device void svm_node_normal_map(KernelGlobals *kg, ShaderData *sd, float *stac int attr_offset = find_attribute(kg, sd, node.z); int attr_sign_offset = find_attribute(kg, sd, node.w); - if(attr_offset == ATTR_STD_NOT_FOUND || attr_offset == ATTR_STD_NOT_FOUND) { + if(attr_offset == ATTR_STD_NOT_FOUND || attr_sign_offset == ATTR_STD_NOT_FOUND) { stack_store_float3(stack, normal_offset, make_float3(0.0f, 0.0f, 0.0f)); return; } |