Fix T38134: missing cycles update when removing world volume scatter shader.

This commit is contained in:
Brecht Van Lommel
2014-01-09 01:26:43 +01:00
parent a0dbee6e93
commit 8c0f9365c0

View File

@@ -41,9 +41,9 @@ ccl_device_inline void path_state_init(KernelGlobals *kg, PathState *state, RNG
#endif
#ifdef __VOLUME__
if(kernel_data.integrator.use_volumes) {
state->volume_bounce = 0;
if(kernel_data.integrator.use_volumes) {
/* initialize volume stack with volume we are inside of */
kernel_volume_stack_init(kg, state->volume_stack);
/* seed RNG for cases where we can't use stratified samples */