From d55e1251485b95eb2abf4bd9405ff7df65ce6212 Mon Sep 17 00:00:00 2001 From: tsgcpp <19503967+tsgcpp@users.noreply.github.com> Date: Fri, 29 Dec 2023 21:22:27 +0900 Subject: [PATCH] fix: Remove matrix properties in VRM0.x migration --- Assets/VRM10/Runtime/Migration/MeshUpdater.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/VRM10/Runtime/Migration/MeshUpdater.cs b/Assets/VRM10/Runtime/Migration/MeshUpdater.cs index 325c83b1b..50aef5cb9 100644 --- a/Assets/VRM10/Runtime/Migration/MeshUpdater.cs +++ b/Assets/VRM10/Runtime/Migration/MeshUpdater.cs @@ -152,6 +152,9 @@ namespace UniVRM10 gltfNode.rotation = node.LocalRotation.ToFloat4(); gltfNode.scale = node.LocalScaling.ToFloat3(); + // remove matrix properties because TRS is used + gltfNode.matrix = null; + if (gltfNode.mesh >= 0) { if (gltfNode.skin >= 0)