fix: Remove matrix properties in VRM0.x migration

This commit is contained in:
tsgcpp 2023-12-29 21:22:27 +09:00
parent e3d4ea53e8
commit d55e125148

View File

@ -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)