repo: janusweb
action: commit
revision: 
path_from: 
revision_from: ef11c74cfd64ff8d3a86eeb8ffd1dda6e2a5a0d4:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit ef11c74cfd64ff8d3a86eeb8ffd1dda6e2a5a0d4
Author: James Baicoianu 
Date:   Fri Oct 4 17:35:10 2024 -0700

    Strip "mixamorig:" from animation track names

diff --git a/scripts/janusghost.js b/scripts/janusghost.js
index 4e57caff0ebc5cbaceb268de41de1dded778c469..
index ..bf8f911e0f2a16d4b6751424e58178da2616611a 100644
--- a/scripts/janusghost.js
+++ b/scripts/janusghost.js
@@ -407,7 +407,7 @@ elation.require(['janusweb.janusbase', 'engine.things.leapmotion'], function() {
         //newclip = THREE.SkeletonUtils.retargetClip(destmesh, sourcemesh, newclip, {useFirstFramePosition: true});
         //console.log('retarget it!', newclip, destmesh, sourcemesh);
         newclip.tracks.forEach(track => {
-          let [name, property] = track.name.split('.');
+          let [name, property] = track.name.replace('mixamorig:', '').split('.');
           let srcbone = sourcemesh.skeleton.getBoneByName(name);
           let dstbone = destmesh.skeleton.getBoneByName(name);
           if (dstbone) {

-----END OF PAGE-----