We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9641b09 commit 23b17cbCopy full SHA for 23b17cb
Source/MaterialDef.cs
@@ -21,7 +21,6 @@ You should have received a copy of the GNU General Public License
21
using System.Runtime.CompilerServices;
22
using HarmonyLib;
23
using UnityEngine;
24
-using Object = UnityEngine.Object;
25
26
namespace Shabby
27
{
@@ -148,7 +147,7 @@ public Material Instantiate(Material referenceMaterial)
148
147
149
Material material;
150
if (updateExisting) {
151
- material = Object.Instantiate(referenceMaterial);
+ material = new Material(referenceMaterial);
152
if (shader != null) material.shader = shader;
153
} else {
154
material = new Material(shader) { name = referenceMaterial.name };
0 commit comments