mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-08 03:36:52 +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);
|
clipper.ClipStart(slot, clip);
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
|
clipper.ClipEnd(slot);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,8 +215,10 @@ namespace Spine {
|
|||||||
uvs = clipper.ClippedUVs.Items;
|
uvs = clipper.ClippedUVs.Items;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (verticesCount == 0 || indicesCount == 0)
|
if (verticesCount == 0 || indicesCount == 0) {
|
||||||
|
clipper.ClipEnd(slot);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// submit to batch
|
// submit to batch
|
||||||
MeshItem item = batcher.NextItem(verticesCount, indicesCount);
|
MeshItem item = batcher.NextItem(verticesCount, indicesCount);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user