From 727945c8f601bfbb0f7f631b3049525f0dd5c232 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 3 Jul 2024 19:34:50 +0900 Subject: [PATCH] =?UTF-8?q?boneWeights=20=E3=82=B3=E3=83=94=E3=83=BC?= =?UTF-8?q?=E5=BF=98=E3=82=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/UniGLTF/Runtime/MeshUtility/MeshFreezer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/UniGLTF/Runtime/MeshUtility/MeshFreezer.cs b/Assets/UniGLTF/Runtime/MeshUtility/MeshFreezer.cs index 572c95e1a..2b9e3eaf0 100644 --- a/Assets/UniGLTF/Runtime/MeshUtility/MeshFreezer.cs +++ b/Assets/UniGLTF/Runtime/MeshUtility/MeshFreezer.cs @@ -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);