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

@ -27,6 +27,6 @@ using System.Reflection;
namespace NAK.Stickers.Properties; namespace NAK.Stickers.Properties;
internal static class AssemblyInfoParams internal static class AssemblyInfoParams
{ {
public const string Version = "1.0.3"; public const string Version = "1.0.4";
public const string Author = "NotAKidoS"; public const string Author = "NotAKidoS";
} }

View file

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