mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[monogame] Fixed clipping for vertex-less attachments. Closes #2737.
This commit is contained in:
parent
b4146b6bf5
commit
3cd1557793
@ -159,6 +159,7 @@ namespace Spine {
|
||||
clipper.ClipStart(slot, clip);
|
||||
continue;
|
||||
} else {
|
||||
clipper.ClipEnd(slot);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -214,8 +215,10 @@ namespace Spine {
|
||||
uvs = clipper.ClippedUVs.Items;
|
||||
}
|
||||
|
||||
if (verticesCount == 0 || indicesCount == 0)
|
||||
if (verticesCount == 0 || indicesCount == 0) {
|
||||
clipper.ClipEnd(slot);
|
||||
continue;
|
||||
}
|
||||
|
||||
// submit to batch
|
||||
MeshItem item = batcher.NextItem(verticesCount, indicesCount);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user