mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 10:46:53 +08:00
brought back string equality comparison in Skin.AttachmentKeyTupleComparer
This commit is contained in:
parent
f42d76a59b
commit
f738ec77b9
@ -90,7 +90,7 @@ namespace Spine {
|
|||||||
internal static readonly AttachmentKeyTupleComparer Instance = new AttachmentKeyTupleComparer();
|
internal static readonly AttachmentKeyTupleComparer Instance = new AttachmentKeyTupleComparer();
|
||||||
|
|
||||||
bool IEqualityComparer<AttachmentKeyTuple>.Equals (AttachmentKeyTuple o1, AttachmentKeyTuple o2) {
|
bool IEqualityComparer<AttachmentKeyTuple>.Equals (AttachmentKeyTuple o1, AttachmentKeyTuple o2) {
|
||||||
return o1.SlotIndex == o2.SlotIndex && o1.NameHashCode == o2.NameHashCode;
|
return o1.SlotIndex == o2.SlotIndex && o1.NameHashCode == o2.NameHashCode && o1.Name == o2.Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
int IEqualityComparer<AttachmentKeyTuple>.GetHashCode (AttachmentKeyTuple o) {
|
int IEqualityComparer<AttachmentKeyTuple>.GetHashCode (AttachmentKeyTuple o) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user