mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-19 17:27:56 -05:00
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:
commit
a28215e457
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user