Skip to content

Commit

Permalink
ROver file fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyansh2116 committed Sep 13, 2024
1 parent a7fad81 commit ea41520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ui/ModelViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const ModelViewer: React.FC = () => {
dracoLoader.setDecoderPath('/draco/'); // Path to Draco decoder files
gltfLoader.setDRACOLoader(dracoLoader);

const myModel = useLoader(GLTFLoader, '/rover.gltf', loader => {
const myModel = useLoader(GLTFLoader, `${process.env.basePath}/rover.gltf`, loader => {
loader.setDRACOLoader(dracoLoader);
});

Expand Down

0 comments on commit ea41520

Please sign in to comment.