mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fixed clipping masks not always working on additional atlas pages, when clipping end slot is first submesh attachment. Closes #1618.
This commit is contained in:
parent
405628baca
commit
68595c439d
@ -302,11 +302,6 @@ namespace Spine.Unity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clippingEndSlot != null && slot.data == clippingEndSlot && i != clippingAttachmentSource) {
|
|
||||||
clippingEndSlot = null;
|
|
||||||
clippingAttachmentSource = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create a new SubmeshInstruction when material changes. (or when forced to separate by a submeshSeparator)
|
// Create a new SubmeshInstruction when material changes. (or when forced to separate by a submeshSeparator)
|
||||||
// Slot with a separator/new material will become the starting slot of the next new instruction.
|
// Slot with a separator/new material will become the starting slot of the next new instruction.
|
||||||
if (hasSeparators) { //current.forceSeparate = hasSeparators && separatorSlots.Contains(slot);
|
if (hasSeparators) { //current.forceSeparate = hasSeparators && separatorSlots.Contains(slot);
|
||||||
@ -381,6 +376,11 @@ namespace Spine.Unity {
|
|||||||
totalRawVertexCount += attachmentVertexCount;
|
totalRawVertexCount += attachmentVertexCount;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (clippingEndSlot != null && slot.data == clippingEndSlot && i != clippingAttachmentSource) {
|
||||||
|
clippingEndSlot = null;
|
||||||
|
clippingAttachmentSource = -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (current.rawVertexCount > 0) {
|
if (current.rawVertexCount > 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user