diff options
author | 2025-02-11 23:14:22 -0500 | |
---|---|---|
committer | 2025-02-11 23:14:22 -0500 | |
commit | acf41b45c3345dd8fa12e013b313afdfb0138a6d (patch) | |
tree | e5dc92b8e70b36994300a80ed92b9586a5eec453 /src/components/chatbubble.jsx | |
parent | b9509422dd5f4c97d5c0746229037a53712ac7fe (diff) |
properly import assets
Diffstat (limited to 'src/components/chatbubble.jsx')
-rw-r--r-- | src/components/chatbubble.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/chatbubble.jsx b/src/components/chatbubble.jsx index a9c0c85..8e1dfd1 100644 --- a/src/components/chatbubble.jsx +++ b/src/components/chatbubble.jsx @@ -6,6 +6,8 @@ import { Html } from '@react-three/drei'; import { AppContext } from '../App'; import Color from 'color'; import { Vector3 } from 'three'; +import messageBubbleModelURL from '../../assets/message-bubble.glb'; +import { meta } from '@eslint/js'; export default function ChatBubble({ id, position, text }) { const meshRef = useRef(); @@ -74,7 +76,7 @@ export default function ChatBubble({ id, position, text }) { } } }, -2); - const { nodes } = useGLTF('../assets/message-bubble.glb'); + const { nodes } = useGLTF(messageBubbleModelURL); let color = Color(active ? everforest.blue : everforest.purple); if (activatable) { |