mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[libgdx] Fixed clipping ending and starting on the same slot.
This commit is contained in:
parent
d115ca83dd
commit
6c1d2f625e
@ -498,6 +498,7 @@ public class Skeleton {
|
||||
mesh.computeWorldVertices(this, slot, 0, verticesLength, vertices, 0, 2);
|
||||
triangles = mesh.getTriangles();
|
||||
} else if (attachment instanceof ClippingAttachment clip && clipper != null) {
|
||||
clipper.clipEnd(slot);
|
||||
clipper.clipStart(this, slot, clip);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -170,6 +170,7 @@ public class SkeletonRenderer {
|
||||
color = mesh.getColor();
|
||||
|
||||
} else if (attachment instanceof ClippingAttachment clip) {
|
||||
clipper.clipEnd(slot);
|
||||
clipper.clipStart(skeleton, slot, clip);
|
||||
continue;
|
||||
|
||||
@ -264,6 +265,7 @@ public class SkeletonRenderer {
|
||||
color = mesh.getColor();
|
||||
|
||||
} else if (attachment instanceof ClippingAttachment clip) {
|
||||
clipper.clipEnd(slot);
|
||||
clipper.clipStart(skeleton, slot, clip);
|
||||
continue;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user