[unity] Fixed error message output behaviour in SkeletonRenderer.Initialize when quiet is set (quiet logic was just plain wrong).

This commit is contained in:
Harald Csaszar 2021-03-18 17:03:03 +01:00
parent 417388d2e7
commit bb0a4f6998

View File

@ -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