Skip to content

Commit 4b24c3c

Browse files
committed
make setting props on a null renderer only a warning
1 parent b0b06a6 commit 4b24c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/DynamicProperties/MaterialPropertyManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private void OnDestroy()
4646
MaterialColorUpdaterPatch.temperatureColorProps.Clear();
4747
ModuleColorChangerPatch.mccProps.Clear();
4848

49-
this.LogDebug("destroyed");
49+
this.LogMessage("destroyed");
5050
}
5151

5252
#endregion
@@ -56,7 +56,7 @@ private void OnDestroy()
5656
public bool Set(Renderer renderer, Props props)
5757
{
5858
if (renderer == null) {
59-
Log.LogError(this, $"cannot set property on null renderer {renderer.GetHashCode()}");
59+
this.LogWarning($"cannot set property on null renderer {renderer.GetHashCode()}");
6060
return false;
6161
}
6262

0 commit comments

Comments
 (0)