mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-10-02 15:53:30 -05:00
Not throw if other than MeshRenderer and SkinnedMeshRenderer
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user