Stickers: fixed nullref when materials were destroyed

This commit is contained in:
NotAKidoS 2024-08-27 17:48:53 -05:00
parent c408a9f83c
commit c206d98a97
2 changed files with 2 additions and 1 deletions

View file

@ -196,6 +196,7 @@ namespace NAK.Stickers
{
foreach (Material material in _materials)
{
if (material == null) continue;
Color color = material.color;
color.a = alpha;
material.color = color;