From c612c8143550b2c310e52d455deb271cba7380e1 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 28 Jan 2019 20:08:48 +0100 Subject: [PATCH] [unity] Fixed previous commit's texture settings warning code preventing border artifacts when mip maps are enabled on PMA textures. Now only issues warning on Spine atlas textures. See #1266. --- .../Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 5c66ba6d7..d99f2b63a 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs @@ -1801,8 +1801,10 @@ namespace Spine.Unity.Editor { if (path.EndsWith(".png.meta", System.StringComparison.Ordinal) || path.EndsWith(".jpg.meta", System.StringComparison.Ordinal)) { - string texturePath = System.IO.Path.ChangeExtension(path, null); - SpineEditorUtilities.IssueWarningsForUnrecommendedTextureSettings(texturePath); + string texturePath = System.IO.Path.ChangeExtension(path, null); // .meta removed + string atlasPath = System.IO.Path.ChangeExtension(texturePath, "atlas.txt"); + if (System.IO.File.Exists(atlasPath)) + SpineEditorUtilities.IssueWarningsForUnrecommendedTextureSettings(texturePath); } } }