mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
Stickers: fixed nullref when materials were destroyed
This commit is contained in:
parent
c408a9f83c
commit
c206d98a97
2 changed files with 2 additions and 1 deletions
|
@ -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";
|
||||||
}
|
}
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue