Not throw if other than MeshRenderer and SkinnedMeshRenderer

This commit is contained in:
ousttrue
2022-02-28 17:22:59 +09:00
parent 551a828083
commit 8e4a8c517a

View File

@@ -212,17 +212,19 @@ namespace UniGLTF
}
else
{
throw new NotImplementedException();
// do nothing
// TrailRenderer, ParticleSystemRenderer ... etc
}
if (Mesh == null)
if (Mesh = null)
{
Summary = "no mesh";
}
VertexColor = VertexColorUtility.DetectVertexColor(Mesh, Materials);
PushRenderer(renderer);
else
{
VertexColor = VertexColorUtility.DetectVertexColor(Mesh, Materials);
PushRenderer(renderer);
}
}
public void PushRenderer(Renderer renderer)