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
committed by Thomas Dinges
parent f6fcaaad94
commit abc674995b
@@ -205,6 +205,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,