Fix #136422: Workbench: Missing shadows for backface culled non-manifold meshes

Regression caused by 20d09435ab.
Ensure compute_visibility runs again after updating the mode.

Pull Request: https://projects.blender.org/blender/blender/pulls/136507
This commit is contained in:
Miguel Pozo
2025-03-25 17:51:07 +01:00
parent 111e60ffb2
commit 8b831be87f

View File

@@ -206,6 +206,8 @@ bool ShadowPass::ShadowView::debug_object_culling(Object *ob)
void ShadowPass::ShadowView::set_mode(ShadowPass::PassType type)
{
current_pass_type_ = type;
/* Ensure compute_visibility runs again after updating the mode. */
manager_fingerprint_ = 0;
}
void ShadowPass::ShadowView::compute_visibility(ObjectBoundsBuf &bounds,