skip color if [remove vcolor]

This commit is contained in:
ousttrue
2020-10-02 16:52:45 +09:00
parent ff00b88682
commit 94694b4186

View File

@@ -102,7 +102,8 @@ namespace VRM
sb.Append("+UV");
info.ExportVertexSize += 4 * 2;
}
if (info.Mesh.colors != null && info.Mesh.colors.Length == info.Mesh.vertexCount)
if (info.Mesh.colors != null && info.Mesh.colors.Length == info.Mesh.vertexCount
&& info.VertexColor == UniGLTF.MeshExportInfo.VertexColorState.ExistsAndIsUsed)
{
sb.Append("+Col");
info.ExportVertexSize += 4 * 4;