From 63e8ab244e3313e7c5c49512eb35b087434d75f4 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 5 Oct 2020 15:23:49 +0900 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8B=95=E5=87=A6=E7=90=86=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=81=AE=E3=81=A7=20VERTEX=5FCOLOR=5FIS=5FINCLUDED=20?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E3=82=92=E5=89=8A=E9=99=A4=E3=80=82=E6=B7=B7?= =?UTF-8?q?=E5=9C=A8=E8=AD=A6=E5=91=8A=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM/UniVRM/Editor/Format/VRMExporterWizard.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Assets/VRM/UniVRM/Editor/Format/VRMExporterWizard.cs b/Assets/VRM/UniVRM/Editor/Format/VRMExporterWizard.cs index 6d9b9f3cd..1bec98921 100644 --- a/Assets/VRM/UniVRM/Editor/Format/VRMExporterWizard.cs +++ b/Assets/VRM/UniVRM/Editor/Format/VRMExporterWizard.cs @@ -232,9 +232,14 @@ namespace VRM { v.DrawGUI(); } - if (m_meshes.Meshes.Any(x => x.VertexColor != UniGLTF.MeshExportInfo.VertexColorState.None)) + foreach (var meshInfo in m_meshes.Meshes) { - Validation.Warning(M17N.Getter.Msg(VRMExporterWizardMessages.VERTEX_COLOR_IS_INCLUDED)).DrawGUI(); + switch (meshInfo.VertexColor) + { + case UniGLTF.MeshExportInfo.VertexColorState.ExistsAndMixed: + Validation.Warning($"{meshInfo.Renderer}: Both vcolor.multiply and not multiply unlit materials exist").DrawGUI(); + break; + } } bool modified = DrawWizardGUI();