boneWeights コピー忘れ

This commit is contained in:
ousttrue
2024-07-03 19:34:50 +09:00
parent 691acb525a
commit 727945c8f6

View File

@@ -150,6 +150,7 @@ namespace UniGLTF.MeshUtility
// memo: BakeMesh(mesh, useScale) という第2引数がある
src.BakeMesh(mesh);
BakeBlendShapes(src, mesh);
mesh.boneWeights = src.sharedMesh.boneWeights;
// apply SkinnedMesh.transform rotation
var m = Matrix4x4.TRS(Vector3.zero, src.transform.rotation, Vector3.one);