@mml-io/3d-web-client-core 0.0.0-experimental-33968ac-20240319 → 0.0.0-experimental-c0eb634-20240319
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/build/index.js +4 -3
- package/build/index.js.map +2 -2
- package/package.json +3 -3
package/build/index.js
CHANGED
@@ -834,7 +834,7 @@ var CharacterModel = class {
|
|
834
834
|
}
|
835
835
|
setMainMesh(mainMesh) {
|
836
836
|
this.mesh = mainMesh;
|
837
|
-
this.mesh.position.set(0, -0.
|
837
|
+
this.mesh.position.set(0, -0.44, 0);
|
838
838
|
this.mesh.traverse((child) => {
|
839
839
|
if (child.type === "SkinnedMesh") {
|
840
840
|
child.castShadow = true;
|
@@ -909,8 +909,9 @@ var CharacterModel = class {
|
|
909
909
|
}
|
910
910
|
});
|
911
911
|
animationClip.tracks = animationClip.tracks.filter((track) => {
|
912
|
-
const trackName = track.name.split(".")
|
913
|
-
|
912
|
+
const [trackName, trackProperty] = track.name.split(".");
|
913
|
+
const shouldAnimate = availableBones.has(trackName) && trackProperty !== "position" && trackProperty !== "scale";
|
914
|
+
return shouldAnimate;
|
914
915
|
});
|
915
916
|
return animationClip;
|
916
917
|
}
|