repo: janusweb action: commit revision: path_from: revision_from: ef11c74cfd64ff8d3a86eeb8ffd1dda6e2a5a0d4: path_to: revision_to:
commit ef11c74cfd64ff8d3a86eeb8ffd1dda6e2a5a0d4 Author: James BaicoianuDate: Fri Oct 4 17:35:10 2024 -0700 Strip "mixamorig:" from animation track names diff --git a/scripts/janusghost.js b/scripts/janusghost.js
--- 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-----