Fix missing Physics Colliders view if Debug Draw is disabled

#3498
This commit is contained in:
Wojtek Figat
2025-05-30 00:46:09 +02:00
parent 294dd3d363
commit b58aaccc53

View File

@@ -237,6 +237,12 @@ void Renderer::Render(SceneRenderTask* task)
| ViewFlags::ContactShadows
| ViewFlags::DepthOfField);
}
// Force Debug Draw usage in some specific views that depend on it
if (renderContext.View.Mode == ViewMode::PhysicsColliders)
{
renderContext.View.Flags |= ViewFlags::DebugDraw;
}
#endif
// Perform the actual rendering