From c206d98a979c966dd59ac0897322c8f4e5afa539 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidoS@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:48:53 -0500 Subject: [PATCH] Stickers: fixed nullref when materials were destroyed --- Stickers/Properties/AssemblyInfo.cs | 2 +- Stickers/Stickers/StickerData.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Stickers/Properties/AssemblyInfo.cs b/Stickers/Properties/AssemblyInfo.cs index bfd8006..818da71 100644 --- a/Stickers/Properties/AssemblyInfo.cs +++ b/Stickers/Properties/AssemblyInfo.cs @@ -27,6 +27,6 @@ using System.Reflection; namespace NAK.Stickers.Properties; internal static class AssemblyInfoParams { - public const string Version = "1.0.3"; + public const string Version = "1.0.4"; public const string Author = "NotAKidoS"; } \ No newline at end of file diff --git a/Stickers/Stickers/StickerData.cs b/Stickers/Stickers/StickerData.cs index 9c1e510..c2bed17 100644 --- a/Stickers/Stickers/StickerData.cs +++ b/Stickers/Stickers/StickerData.cs @@ -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;