Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

error when morph target don't have NORMAL attribute #57

@iCyP

Description

@iCyP

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

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

if (blendShape.Positions.Count == mesh.vertexCount)
{
mesh.AddBlendShapeFrame(blendShape.Name, FRAME_WEIGHT,
blendShape.Positions.ToArray(),
(meshContext.normals != null && meshContext.normals.Length == mesh.vertexCount) ? blendShape.Normals.ToArray() : null,
null
);

あたりで頂点数が違うというエラーが出てVRM がロード出来ません。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions