[Bf-blender-cvs] [2f6562ccfb8] cycles-x: Fix wrong render result after cryptomatte commit
Sergey Sharybin
noreply at git.blender.org
Thu Jul 15 18:19:40 CEST 2021
Commit: 2f6562ccfb8326028fefb52de351f8bf4908d350
Author: Sergey Sharybin
Date: Thu Jul 15 18:16:56 2021 +0200
Branches: cycles-x
https://developer.blender.org/rB2f6562ccfb8326028fefb52de351f8bf4908d350
Fix wrong render result after cryptomatte commit
Was checking the wrong field to see whether there are any cryptomatte
passes in the scene.
===================================================================
M intern/cycles/integrator/path_trace.cpp
===================================================================
diff --git a/intern/cycles/integrator/path_trace.cpp b/intern/cycles/integrator/path_trace.cpp
index 2b5d67f0b85..d0894ca6b62 100644
--- a/intern/cycles/integrator/path_trace.cpp
+++ b/intern/cycles/integrator/path_trace.cpp
@@ -154,7 +154,8 @@ void PathTrace::render(const RenderWork &render_work)
void PathTrace::render_pipeline(RenderWork render_work)
{
- render_scheduler_.set_need_schedule_cryptomatte(device_scene_->data.film.cryptomatte_depth);
+ render_scheduler_.set_need_schedule_cryptomatte(device_scene_->data.film.cryptomatte_passes !=
+ 0);
render_init_kernel_execution();
More information about the Bf-blender-cvs
mailing list