Skip to content

Commit da44e38

Browse files
jcgglclaude
andcommitted
fix: use LoopPingPong for all VRMA emotion slots in playground
Avoids seam jump when animation reaches end — now smoothly reverses direction instead of jumping back to frame 0. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 23c230d commit da44e38

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

vrma-playground/index.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,11 +1262,9 @@ <h3>Performance Metrics</h3>
12621262
var clip = new THREE.AnimationClip(rawClip.name, rawClip.duration, boneOnlyTracks);
12631263
var action = mixer.clipAction(clip);
12641264

1265-
if (emotion === 'idle') {
1266-
action.setLoop(THREE.LoopPingPong);
1267-
} else {
1268-
action.setLoop(THREE.LoopRepeat);
1269-
}
1265+
// All slots use PingPong: smooth back-and-forth avoids
1266+
// seam jump when first/last keyframes don't match.
1267+
action.setLoop(THREE.LoopPingPong);
12701268

12711269
action.setEffectiveWeight(0);
12721270
action.play();

0 commit comments

Comments
 (0)