mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-14 14:29:52 -05:00
VERTEX_COLOR_IS_INCLUDED check MeshRenderer
This commit is contained in:
parent
b4f4a4a6f5
commit
718e3253c7
|
|
@ -321,7 +321,7 @@ namespace VRM
|
|||
yield return Validation.Error(Msg(VRMExporterWizardMessages.NEEDS_VRM_BLENDSHAPE_PROXY));
|
||||
}
|
||||
|
||||
var vertexColor = ExportRoot.GetComponentsInChildren<SkinnedMeshRenderer>().Any(x => x.sharedMesh.colors.Length > 0);
|
||||
var vertexColor = ExportRoot.GetComponentsInChildren<Renderer>().Select(r => GetMesh(r)).Any(x => x != null && x.colors.Length > 0);
|
||||
if (vertexColor)
|
||||
{
|
||||
yield return Validation.Warning(Msg(VRMExporterWizardMessages.VERTEX_COLOR_IS_INCLUDED));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user