diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-09-03 18:07:49 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-09-03 18:07:49 +0400 |
commit | bfa82b074d7a40dd108b766b2a6a4f63e15fa4f5 (patch) | |
tree | 285a133b635e84f361071aa9b405e7f9b7d6283e /intern | |
parent | ad551c1ec669f3b68cd0f2620acc07545fe9d57a (diff) |
Fix #32097: cycles window texture coordinate wrong, happened after 2.63.
Diffstat (limited to 'intern')
-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 854a708a988..fbaf253177d 100644 --- a/intern/cycles/kernel/svm/svm_tex_coord.h +++ b/intern/cycles/kernel/svm/svm_tex_coord.h @@ -29,7 +29,7 @@ __device_inline float3 svm_background_offset(KernelGlobals *kg) __device_inline float3 svm_world_to_ndc(KernelGlobals *kg, ShaderData *sd, float3 P) { if(kernel_data.cam.type != CAMERA_PANORAMA) { - if(sd->object != ~0) + if(sd->object == ~0) P += svm_background_offset(kg); Transform tfm = kernel_data.cam.worldtondc; |