[GUI] Fix sprite hashes when alpha mask is disabled

This commit is contained in:
VaDiM
2026-08-08 11:54:43 +03:00
parent 4f62ea1ba7
commit b31ad421f4
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -293,7 +293,7 @@ namespace AssetStudio
}
}
public ulong GetSpriteHash()
public ulong GetSpriteHash(SpriteMaskMode maskMode)
{
ulong spriteHash = 0;
if (m_Texture2D == null)
@@ -301,7 +301,7 @@ namespace AssetStudio
spriteHash = m_Texture2D.GetImageDataHash();
if (m_AlphaTexture2D != null)
if (maskMode != SpriteMaskMode.Off && m_AlphaTexture2D != null)
{
spriteHash ^= m_AlphaTexture2D.GetImageDataHash();
}