Merge pull request #2210 from tsgcpp/feature/remove_matrix_properties_in_migration

nodeにmatrixを使用したVRM0.xのロードを実施すると "Exception: matrix with translation" が発生する問題を解消する
This commit is contained in:
ousttrue
2024-01-09 13:52:43 +09:00
committed by GitHub

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)