From ac377315a79f6915c5ae088931ca5ecc32a3945f Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 11:27:54 +0000 Subject: [PATCH] Changes Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com> --- src/devkit/SceneStatsProbe.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/devkit/SceneStatsProbe.tsx b/src/devkit/SceneStatsProbe.tsx index b19179a..294c6cc 100644 --- a/src/devkit/SceneStatsProbe.tsx +++ b/src/devkit/SceneStatsProbe.tsx @@ -35,9 +35,8 @@ export function SceneStatsProbe() { if (frame) { try { - // @ts-expect-error detectedPlanes is experimental - const planes = frame.detectedPlanes; - sceneStats.xrPlanesCount = planes ? (planes.size ?? planes.length ?? 0) : 0; + const planes = (frame as unknown as { detectedPlanes?: { size?: number } }).detectedPlanes; + sceneStats.xrPlanesCount = planes?.size ?? 0; } catch { sceneStats.xrPlanesCount = 0; } sceneStats.xrInputCount = frame.session?.inputSources?.length ?? 0; }