From 5a67b32d2abfedd01e997bcd7a72156ce9226fec Mon Sep 17 00:00:00 2001 From: memelotsqui Date: Fri, 13 Oct 2023 15:15:33 -0600 Subject: [PATCH] fix double inverses --- src/library/loadMixamoAnimation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/loadMixamoAnimation.js b/src/library/loadMixamoAnimation.js index fdda03ec..1b51e703 100644 --- a/src/library/loadMixamoAnimation.js +++ b/src/library/loadMixamoAnimation.js @@ -25,8 +25,8 @@ export function getMixamoAnimation( animations, model, vrm ) { const vrmHipsHeight = Math.abs( vrmHipsY - vrmRootY ); const hipsPositionScale = vrmHipsHeight / motionHipsHeight; - clip.tracks.forEach( ( track ) => { - + clip.tracks.forEach( ( origTrack ) => { + const track = origTrack.clone(); // Convert each tracks for VRM use, and push to `tracks` const trackSplitted = track.name.split( '.' ); const mixamoRigName = trackSplitted[ 0 ];