mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
Fix 2D Projects breaking PMA atlases.
Disable alphaIsTransparency by default. This will prevent 2D projects from causing PMA atlases to bleed colors into transparent areas.
This commit is contained in:
parent
3ed63ef028
commit
987f4a17d2
@ -390,6 +390,7 @@ public class SpineEditorUtilities : AssetPostprocessor {
|
||||
TextureImporter texImporter = (TextureImporter)TextureImporter.GetAtPath(texturePath);
|
||||
texImporter.textureFormat = TextureImporterFormat.AutomaticTruecolor;
|
||||
texImporter.mipmapEnabled = false;
|
||||
texImporter.alphaIsTransparency = false;
|
||||
texImporter.maxTextureSize = 2048;
|
||||
|
||||
EditorUtility.SetDirty(texImporter);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user