mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-15 07:00:10 -05:00
allow empty blendShape
This commit is contained in:
parent
8cfa49041d
commit
162a431486
|
|
@ -223,16 +223,18 @@ namespace VRM
|
|||
{
|
||||
mesh.AddBlendShapeFrame(name,
|
||||
weight,
|
||||
hasVertices && vertices.Length == mesh.vertexCount ? vertices : null,
|
||||
vertices,
|
||||
hasNormals && normals.Length == mesh.vertexCount ? normals : null,
|
||||
hasTangents && tangents.Length == mesh.vertexCount ? tangents : null
|
||||
);
|
||||
}
|
||||
catch (Exception)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.LogWarningFormat("{0}.{1}", mesh.name, srcMesh.GetBlendShapeName(i));
|
||||
|
||||
throw;
|
||||
Debug.LogWarningFormat("fail to mesh.AddBlendShapeFrame {0}.{1}: {2}",
|
||||
mesh.name,
|
||||
srcMesh.GetBlendShapeName(i),
|
||||
ex
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user