fix teleport end anim
This commit is contained in:
@@ -135,7 +135,7 @@ export default function VrmCharacter({ selectedAnimation: animState }) {
|
||||
if (meta && !meta.loop && actions[current]) {
|
||||
const action = actions[current];
|
||||
if (!action.isRunning() || action.time >= action.getClip().duration - 0.1) {
|
||||
action.stop();
|
||||
action.fadeOut(0.3);
|
||||
actions.fly_idle?.reset().setLoop(THREE.LoopRepeat).fadeIn(0.3).play();
|
||||
currentActionRef.current = 'fly_idle';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user