From d4829f014f4e7d9c6f0e6c1903017c02e5640926 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 29 Apr 2019 17:52:23 +0200 Subject: [PATCH] [unity] Fixed casting exception when use custom atlas asset. Closes #1342. --- .../Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs index b64795bf5..ce62cf4a7 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs @@ -1433,9 +1433,9 @@ namespace Spine.Unity.Editor { bool pmaVertexColors = false; bool tintBlack = false; - foreach (SpineAtlasAsset atlasAsset in skeletonDataAsset.atlasAssets) { + foreach (AtlasAssetBase atlasAsset in skeletonDataAsset.atlasAssets) { if (!pmaVertexColors) { - foreach (Material m in atlasAsset.materials) { + foreach (Material m in atlasAsset.Materials) { if (m.shader.name.Contains(PMAShaderQuery)) { pmaVertexColors = true; break; @@ -1444,7 +1444,7 @@ namespace Spine.Unity.Editor { } if (!tintBlack) { - foreach (Material m in atlasAsset.materials) { + foreach (Material m in atlasAsset.Materials) { if (m.shader.name.Contains(TintBlackShaderQuery)) { tintBlack = true; break;