diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index 81f1c69f..cf8ad02d 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -185,6 +185,7 @@ export class ViewportHost { this.renderer.domElement.removeEventListener("pointerleave", this.handlePointerLeave); this.clearBrushMeshes(); this.clearPlayerStartMarkers(); + this.boxCreatePreviewHandler = null; this.setBoxCreatePreview(null); for (const cachedTexture of this.materialTextureCache.values()) {