Skip to content

Commit

Permalink
Character path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitash-Biswas committed Jul 12, 2024
1 parent bde836a commit f6c567a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "next/core-web-vitals"
"extends": ["next/babel","next/core-web-vitals"]
}
4 changes: 2 additions & 2 deletions app/components/Character.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import React, { useEffect, useRef } from "react";

export function Character({ animation, ...props }) {
const group = useRef();
const { nodes, materials, animations } = useGLTF("/models/character.glb");
const { nodes, materials, animations } = useGLTF("models/character.glb");
const { actions } = useAnimations(animations, group);
useEffect(() => {
actions[animation]?.reset().fadeIn(0.24).play();
Expand Down Expand Up @@ -57,4 +57,4 @@ export function Character({ animation, ...props }) {
);
}

useGLTF.preload("/models/character.glb");
useGLTF.preload("models/character.glb");

0 comments on commit f6c567a

Please sign in to comment.