Update src/hooks/useCharacterAnimation.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
math-pixel
2026-04-29 11:07:40 +02:00
committed by GitHub
parent 93744b15f7
commit 29cd03fc21
+1 -1
View File
@@ -33,7 +33,7 @@ export function useCharacterAnimation(
fadeDuration = DEFAULT_FADE_DURATION,
} = config;
const groupRef = useRef<THREE.Group>(null);
const groupRef = useRef<THREE.Group | null>(null);
const { scene, animations } = useGLTF(modelPath);
const { actions, names, mixer } = useAnimations(animations, groupRef);
const [currentAnimation, setCurrentAnimation] = useState(initialAnimation);