Fix Cycles not rendering motion vector passes after recent changes

Causing regression tests to fail.
This commit is contained in:
Brecht Van Lommel
2021-06-28 13:56:52 +02:00
parent 7d281a4f7d
commit ce25b5812b

View File

@@ -603,8 +603,10 @@ vector<Pass> BlenderSync::sync_render_passes(BL::Scene &b_scene,
for (BL::RenderPass &b_pass : b_rlay.passes) {
PassType pass_type = get_pass_type(b_pass);
if (pass_type == PASS_MOTION && view_layer.use_motion_blur)
if (pass_type == PASS_MOTION &&
(b_view_layer.use_motion_blur() && b_scene.render().use_motion_blur())) {
continue;
}
if (pass_type != PASS_NONE)
Pass::add(pass_type, passes, b_pass.name().c_str());
}