UniGLTF icon indicating copy to clipboard operation
UniGLTF copied to clipboard

error when morph target don't have NORMAL attribute

Open iCyP opened this issue 7 years ago • 1 comments

モーフターゲットが下記例のようにPOSITION要素のみを持ち、NORMAL要素を持たないとき、

targets:[
    {"POSITION":1}, 
    {"POSITION":2}, ...
]

https://github.com/ousttrue/UniGLTF/blob/cc84436cea14fb4dfc337eb6b7b406697a6ae5e2/Core/Scripts/IO/MeshImporter.cs#L449-L455 あたりで頂点数が違うというエラーが出てVRM がロード出来ません。

iCyP avatar Nov 17 '18 14:11 iCyP

フィードバックありがとうございます。

mesh.AddBlendShapeFrame の挙動を確認して、空のnormalを許容するようにします。 position必須、normalはあってもなくてもよい が意図した動作です。

ousttrue avatar Nov 20 '18 15:11 ousttrue