From 6e48fa858d34694e973c8d3f28283b708cc2ff65 Mon Sep 17 00:00:00 2001 From: memelotsqui Date: Sun, 29 Oct 2023 23:25:03 -0600 Subject: [PATCH] properly dispose index buffer array --- src/components/Scene.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Scene.jsx b/src/components/Scene.jsx index 8d4a603d..52b3b693 100644 --- a/src/components/Scene.jsx +++ b/src/components/Scene.jsx @@ -145,6 +145,7 @@ export default function Scene({sceneModel, lookatManager}) { if (child.userData.origIndexBuffer){ child.geometry.setIndex(child.userData.clippedIndexGeometry); child.geometry.boundsTree = child.userData.lastBoundsTree; + child.userData.clippedIndexGeometry.dispose(); } } })