From 3414b3b7d1cd8668e8d45d54de2cce672e4f8e43 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 6 Dec 2021 17:13:02 +0900 Subject: [PATCH] =?UTF-8?q?skin=20=E3=81=8C=E3=81=82=E3=82=8B=E3=81=8C=20m?= =?UTF-8?q?esh=20=E3=81=8C=E7=84=A1=E3=81=84=E3=80=82=E4=BB=95=E6=A7=98?= =?UTF-8?q?=E3=81=AF=E3=81=A8=E3=82=82=E3=81=8B=E3=81=8F=E5=AE=9F=E9=9A=9B?= =?UTF-8?q?=E3=81=AB=E9=81=AD=E9=81=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM10/Runtime/Migration/MeshUpdater.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM10/Runtime/Migration/MeshUpdater.cs b/Assets/VRM10/Runtime/Migration/MeshUpdater.cs index 24e3dda1f..fe57e83ee 100644 --- a/Assets/VRM10/Runtime/Migration/MeshUpdater.cs +++ b/Assets/VRM10/Runtime/Migration/MeshUpdater.cs @@ -157,7 +157,7 @@ namespace UniVRM10 gltfNode.translation = node.LocalTranslation.ToFloat3(); gltfNode.rotation = node.LocalRotation.ToFloat4(); gltfNode.scale = node.LocalScaling.ToFloat3(); - if (gltfNode.skin >= 0) + if (gltfNode.mesh >= 0 && gltfNode.skin >= 0) { var gltfSkin = gltf.skins[gltfNode.skin]; gltfSkin.inverseBindMatrices = AddAccessor(node.MeshGroup.Skin.InverseMatrices.GetSpan());