From 51a76192865b82ddbcf2f7e4e7c802f6e7f114ae Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 19 May 2026 11:34:30 +0200 Subject: [PATCH] feat(debugpanel): "Indoor rendering" probe checkboxes Six checkboxes (ALL master + five individual probes) in the existing DrawDiagnostics block. Toggling flips the corresponding RenderingDiagnostics.Probe* flag live via DebugVM forwarding. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Panels/Debug/DebugPanel.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/AcDream.UI.Abstractions/Panels/Debug/DebugPanel.cs b/src/AcDream.UI.Abstractions/Panels/Debug/DebugPanel.cs index 2ee203d..bcf58be 100644 --- a/src/AcDream.UI.Abstractions/Panels/Debug/DebugPanel.cs +++ b/src/AcDream.UI.Abstractions/Panels/Debug/DebugPanel.cs @@ -254,6 +254,27 @@ public sealed class DebugPanel : IPanel if (r.Checkbox("Probe auto-walk (ACDREAM_PROBE_AUTOWALK)", ref probeAutoWalk)) _vm.ProbeAutoWalk = probeAutoWalk; + // ── Indoor rendering diagnostics (2026-05-19) ─────────────── + // Pinpoint where the EnvCell rendering chain breaks for + // hypothesis-driven Phase 2 fix. Spec: + // docs/superpowers/specs/2026-05-19-indoor-cell-rendering-fix-design.md + r.Separator(); + r.Text("Indoor rendering (envCell):"); + + bool probeIndoorAll = _vm.ProbeIndoorAll; + bool probeIndoorWalk = _vm.ProbeIndoorWalk; + bool probeIndoorLookup = _vm.ProbeIndoorLookup; + bool probeIndoorUpload = _vm.ProbeIndoorUpload; + bool probeIndoorXform = _vm.ProbeIndoorXform; + bool probeIndoorCull = _vm.ProbeIndoorCull; + + if (r.Checkbox("Indoor: ALL (ACDREAM_PROBE_INDOOR_ALL)", ref probeIndoorAll)) _vm.ProbeIndoorAll = probeIndoorAll; + if (r.Checkbox("Indoor: walk (ACDREAM_PROBE_INDOOR_WALK)", ref probeIndoorWalk)) _vm.ProbeIndoorWalk = probeIndoorWalk; + if (r.Checkbox("Indoor: lookup (ACDREAM_PROBE_INDOOR_LOOKUP)", ref probeIndoorLookup)) _vm.ProbeIndoorLookup = probeIndoorLookup; + if (r.Checkbox("Indoor: upload (ACDREAM_PROBE_INDOOR_UPLOAD)", ref probeIndoorUpload)) _vm.ProbeIndoorUpload = probeIndoorUpload; + if (r.Checkbox("Indoor: xform (ACDREAM_PROBE_INDOOR_XFORM)", ref probeIndoorXform)) _vm.ProbeIndoorXform = probeIndoorXform; + if (r.Checkbox("Indoor: cull (ACDREAM_PROBE_INDOOR_CULL)", ref probeIndoorCull)) _vm.ProbeIndoorCull = probeIndoorCull; + r.Spacing(); // Cycle / toggle actions live on the VM as Action handles; the