Fix #32097: cycles window texture coordinate wrong, happened after 2.63.

This commit is contained in:
Brecht Van Lommel
2012-09-03 14:07:49 +00:00
parent ad551c1ec6
commit bfa82b074d

View File

@@ -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;