fix NormalizeSkinnedMesh

#603
This commit is contained in:
ousttrue
2020-11-12 16:13:24 +09:00
parent ad86cac969
commit 68328edd15

View File

@@ -237,9 +237,9 @@ namespace MeshUtility
var srcMesh = srcRenderer.sharedMesh;
var originalSrcMesh = srcMesh;
// clear blendShape
if (clearBlendShape)
{
// clear blendShape if not bake current blendshape
for (int i = 0; i < srcMesh.blendShapeCount; ++i)
{
srcRenderer.SetBlendShapeWeight(i, 0);
@@ -305,6 +305,13 @@ namespace MeshUtility
//
// BlendShapes
//
// clear blendShape always
for (int i = 0; i < srcMesh.blendShapeCount; ++i)
{
srcRenderer.SetBlendShapeWeight(i, 0);
}
var meshVertices = mesh.vertices;
var meshNormals = mesh.normals;
#if VRM_NORMALIZE_BLENDSHAPE_TANGENT