mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-11 13:29:41 -05:00
Error防止
Material doesn't have a float or range property '_VColBlendMode' UnityEngine.Material:GetInt(String)
This commit is contained in:
@@ -64,7 +64,15 @@ namespace VRM
|
||||
|
||||
static bool MaterialUseVertexColor(Material m)
|
||||
{
|
||||
return UniGLTF.UniUnlit.Utils.GetVColBlendMode(m) == UniGLTF.UniUnlit.UniUnlitVertexColorBlendOp.Multiply;
|
||||
if (m.shader.name != UniGLTF.UniUnlit.Utils.ShaderName)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (UniGLTF.UniUnlit.Utils.GetVColBlendMode(m) != UniGLTF.UniUnlit.UniUnlitVertexColorBlendOp.Multiply)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static void CalcMeshSize(ref UniGLTF.MeshExportInfo info,
|
||||
|
||||
Reference in New Issue
Block a user