mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-12 22:10:11 -05:00
skip null
This commit is contained in:
@@ -112,6 +112,10 @@ namespace UniVRM10
|
||||
var materials = renderer.sharedMaterials; // avoid copy
|
||||
foreach (var material in materials)
|
||||
{
|
||||
if (material == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (Materials.Contains(material))
|
||||
{
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user