mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[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.
This commit is contained in:
parent
dc676cb25a
commit
c612c81435
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user