From 77fc1fa47fee284c5f4cdcb57e4da0853f65319f Mon Sep 17 00:00:00 2001 From: "H. E." <6037756+rndexe@users.noreply.github.com> Date: Fri, 9 Aug 2024 22:19:52 +0530 Subject: [PATCH] Fix bvh demo (#61) --- demos/bvh/package.json | 2 +- demos/bvh/src/App.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/bvh/package.json b/demos/bvh/package.json index 04cb1caf..d0974837 100644 --- a/demos/bvh/package.json +++ b/demos/bvh/package.json @@ -25,7 +25,7 @@ "dev": "vite --host", "dev3": "e2e-dev $npm_package_name", "build": "tsc && vite build", - "bbuild2": "tsc && e2e-build $npm_package_name", + "build2": "tsc && e2e-build $npm_package_name", "preview": "vite preview" }, "browserslist": [ diff --git a/demos/bvh/src/App.jsx b/demos/bvh/src/App.jsx index 3f35c0ef..b4017694 100755 --- a/demos/bvh/src/App.jsx +++ b/demos/bvh/src/App.jsx @@ -1,7 +1,7 @@ import { useRef } from 'react' import { Canvas, useFrame } from '@react-three/fiber' import { Bvh, OrbitControls, useHelper } from '@react-three/drei' -import { MeshBVHVisualizer } from 'three-mesh-bvh' +import { MeshBVHHelper } from 'three-mesh-bvh' import { Perf } from 'r3f-perf' import { useControls } from 'leva' import { Rays } from './Rays' @@ -9,7 +9,7 @@ import { Rays } from './Rays' function Torus(props) { const mesh = useRef() const sphere = useRef() - useHelper(mesh, MeshBVHVisualizer) + useHelper(mesh, MeshBVHHelper) useFrame((state, delta) => (mesh.current.rotation.x = mesh.current.rotation.y += delta)) return (