Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-09-03 18:07:49 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-09-03 18:07:49 +0400
commitbfa82b074d7a40dd108b766b2a6a4f63e15fa4f5 (patch)
tree285a133b635e84f361071aa9b405e7f9b7d6283e /intern/cycles/kernel/svm/svm_tex_coord.h
parentad551c1ec669f3b68cd0f2620acc07545fe9d57a (diff)
Fix #32097: cycles window texture coordinate wrong, happened after 2.63.
Diffstat (limited to 'intern/cycles/kernel/svm/svm_tex_coord.h')
-rw-r--r--intern/cycles/kernel/svm/svm_tex_coord.h2
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;