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();
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs