diff --git a/.env b/.env index 1b5cf68..a420b5f 100644 --- a/.env +++ b/.env @@ -1 +1,2 @@ -PUBLIC_URL=. \ No newline at end of file +PUBLIC_URL=. +REPO_URL=3D-Portfolio \ No newline at end of file diff --git a/src/components/Avatar.jsx b/src/components/Avatar.jsx index 57016eb..3355503 100644 --- a/src/components/Avatar.jsx +++ b/src/components/Avatar.jsx @@ -7,11 +7,9 @@ import { useAnimations, useFBX, useGLTF, useScroll } from "@react-three/drei"; import { useFrame } from "@react-three/fiber"; import * as THREE from "three"; export default function Avatar(props) { - const { nodes, materials } = useGLTF("./models/Me.glb"); - const { animations: idleAnimation } = useFBX( - "./animations/Breathing_Idle.fbx" - ); - const { animations: walkingAnimation } = useFBX("./animations/Walking.fbx"); + const { nodes, materials } = useGLTF("models/Me.glb"); + const { animations: idleAnimation } = useFBX("animations/Breathing_Idle.fbx"); + const { animations: walkingAnimation } = useFBX("animations/Walking.fbx"); const group = useRef(); const [animation, setAnimation] = useState("idle"); idleAnimation[0].name = "idle"; @@ -115,6 +113,6 @@ export default function Avatar(props) { ); } -useGLTF.preload("./models/Me.glb"); -useFBX.preload("./animations/Breathing_Idle.fbx"); -useFBX.preload("./animations/Walking.fbx"); +useGLTF.preload("models/Me.glb"); +useFBX.preload("animations/Breathing_Idle.fbx"); +useFBX.preload("animations/Walking.fbx");