src/components/shelf.jsx
@@ -2,7 +2,6 @@ import { useGLTF, useFBX } from '@react-three/drei'; import * as THREE from 'three'; import { MODEL_SHELF_SCALE } from '@/config/setting' import { snapshot } from 'valtio'; import { useStore } from '@/store'; import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader'; import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'; @@ -18,7 +17,7 @@ }, []) useEffect(() => { snapshot(state).models[no] = position; state.shelfList[no] = position; }, [props]); return (