From bb0a4f6998fb64084f4c600e2cdaa29b2a18dc01 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Thu, 18 Mar 2021 17:03:03 +0100 Subject: [PATCH] [unity] Fixed error message output behaviour in `SkeletonRenderer.Initialize` when `quiet` is set (`quiet` logic was just plain wrong). --- .../Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs index c68f50e65..fc29fab9e 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs @@ -363,7 +363,7 @@ namespace Spine.Unity { #if UNITY_EDITOR if (!Application.isPlaying) { string errorMessage = null; - if (quiet || MaterialChecks.IsMaterialSetupProblematic(this, ref errorMessage)) + if (!quiet && MaterialChecks.IsMaterialSetupProblematic(this, ref errorMessage)) Debug.LogWarningFormat(this, "Problematic material setup at {0}: {1}", this.name, errorMessage); } #endif