skip null

This commit is contained in:
ousttrue
2024-06-07 16:20:28 +09:00
parent c02d2cc8ab
commit c672750078

View File

@@ -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;