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
commit a28215e457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)