Updated GenerateMask helper
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
internal class CaseInsensitiveEqualityComparer : IEqualityComparer<string>
|
||||
{
|
||||
private static CaseInsensitiveEqualityComparer _default;
|
||||
public static CaseInsensitiveEqualityComparer Default = _default ?? new CaseInsensitiveEqualityComparer();
|
||||
|
||||
public bool Equals(string x, string y)
|
||||
{
|
||||
return string.Equals(x, y, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
public int GetHashCode(string obj)
|
||||
{
|
||||
return obj.ToLowerInvariant().GetHashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9936a64e41c0ed842b8e241684b1d002
|
||||
@@ -14,7 +14,7 @@ namespace Misaki.ArtToolEditor
|
||||
var bytes = exportTexture.EncodeToPNG();
|
||||
File.WriteAllBytes(textureFullPath, bytes);
|
||||
|
||||
UnityEngine.Object.DestroyImmediate(exportTexture);
|
||||
Object.DestroyImmediate(exportTexture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user