Commit ad47c3ce authored by wuhao's avatar wuhao 🎯

asder

parent d4491b2c
ssh root@192.168.40.50 "rm -rf /qjsfx/web/dashboard"
echo 'deleted /qjsfx/web/dashboard'
scp -r ./dashboard root@192.168.40.50:/qjsfx/web/
ssh root@192.168.40.50 "rm -rf /ngsfx/web/dashboard"
echo 'deleted /ngsfx/web/dashboard'
scp -r ./dashboard root@192.168.40.50:/ngsfx/web/
echo 'sync complete'
......@@ -8,15 +8,15 @@ import { useGLTF } from "@react-three/drei";
const Mesh = (props) => {
const model = useGLTF(props.path);
let mixer = new THREE.AnimationMixer(model.scene);
model.animations.forEach((clip)=>{
const action = mixer.clipAction(clip);
action.play();
})
// let mixer = new THREE.AnimationMixer(model.scene);
// model.animations.forEach((clip)=>{
// const action = mixer.clipAction(clip);
// action.play();
// })
useFrame((scene,delta)=>{
mixer?.update(delta)
})
// useFrame((scene,delta)=>{
// mixer?.update(delta)
// })
return (
<primitive object={model.scene} scale={0.007} position={[20,0.35,-8]}/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment