Fix cycles CUDA error with world multiple importance sampling, after recent OpenCL fixes.

This commit is contained in:
Brecht Van Lommel 2013-05-15 19:02:30 +00:00
parent ac43397767
commit 693f687ebf

@ -430,7 +430,8 @@ __device void object_transform_light_sample(KernelGlobals *kg, LightSample *ls,
/* instance transform */
if(object >= 0) {
#ifdef __OBJECT_MOTION__
Transform tfm = object_fetch_transform_motion_test(kg, object, time, NULL);
Transform itfm;
Transform tfm = object_fetch_transform_motion_test(kg, object, time, &itfm);
#else
Transform tfm = object_fetch_transform(kg, object, OBJECT_TRANSFORM);
#endif