فهرست منبع

[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.

Harald Csaszar 6 سال پیش
والد
کامیت
c612c81435
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs

+ 4 - 2
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);
 					}
 				}
 			}