@sage-rsc/talking-head-react 1.4.7 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +764 -769
- package/package.json +1 -1
- package/src/lib/talkinghead.mjs +2 -12
package/package.json
CHANGED
package/src/lib/talkinghead.mjs
CHANGED
|
@@ -5760,7 +5760,6 @@ class TalkingHead {
|
|
|
5760
5760
|
// Filter and map animation tracks
|
|
5761
5761
|
const mappedTracks = [];
|
|
5762
5762
|
const unmappedBones = new Set();
|
|
5763
|
-
let filteredShoulderTracks = 0;
|
|
5764
5763
|
anim.tracks.forEach(track => {
|
|
5765
5764
|
// Remove mixamorig prefix first
|
|
5766
5765
|
let trackName = track.name.replaceAll('mixamorig', '');
|
|
@@ -5771,13 +5770,8 @@ class TalkingHead {
|
|
|
5771
5770
|
// Map bone name to avatar skeleton
|
|
5772
5771
|
const mappedBoneName = mapBoneName(fbxBoneName);
|
|
5773
5772
|
|
|
5774
|
-
//
|
|
5775
|
-
|
|
5776
|
-
if (property === 'quaternion' || property === 'rotation') {
|
|
5777
|
-
filteredShoulderTracks++;
|
|
5778
|
-
return; // Skip this track - don't add it to mappedTracks
|
|
5779
|
-
}
|
|
5780
|
-
}
|
|
5773
|
+
// Note: We allow shoulder rotation tracks to play so arms position correctly
|
|
5774
|
+
// The shoulder adjustment function will override them after animation updates
|
|
5781
5775
|
|
|
5782
5776
|
if (mappedBoneName && property) {
|
|
5783
5777
|
// Create new track with mapped bone name
|
|
@@ -5806,10 +5800,6 @@ class TalkingHead {
|
|
|
5806
5800
|
}
|
|
5807
5801
|
});
|
|
5808
5802
|
|
|
5809
|
-
if (filteredShoulderTracks > 0) {
|
|
5810
|
-
console.log(`✓ Filtered out ${filteredShoulderTracks} shoulder rotation track(s) to prevent high shoulders`);
|
|
5811
|
-
}
|
|
5812
|
-
|
|
5813
5803
|
if (unmappedBones.size > 0) {
|
|
5814
5804
|
console.warn(`⚠️ ${unmappedBones.size} bone(s) could not be mapped:`, Array.from(unmappedBones).sort().join(', '));
|
|
5815
5805
|
}
|