forked from bartvdbraak/blender
Fix cycles CUDA error with world multiple importance sampling, after recent OpenCL fixes.
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user