Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-12 11:27:54 +00:00
parent d921b33cd4
commit ac377315a7
+2 -3
View File
@@ -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;
}