mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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);
|
mesh.computeWorldVertices(this, slot, 0, verticesLength, vertices, 0, 2);
|
||||||
triangles = mesh.getTriangles();
|
triangles = mesh.getTriangles();
|
||||||
} else if (attachment instanceof ClippingAttachment clip && clipper != null) {
|
} else if (attachment instanceof ClippingAttachment clip && clipper != null) {
|
||||||
|
clipper.clipEnd(slot);
|
||||||
clipper.clipStart(this, slot, clip);
|
clipper.clipStart(this, slot, clip);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -170,6 +170,7 @@ public class SkeletonRenderer {
|
|||||||
color = mesh.getColor();
|
color = mesh.getColor();
|
||||||
|
|
||||||
} else if (attachment instanceof ClippingAttachment clip) {
|
} else if (attachment instanceof ClippingAttachment clip) {
|
||||||
|
clipper.clipEnd(slot);
|
||||||
clipper.clipStart(skeleton, slot, clip);
|
clipper.clipStart(skeleton, slot, clip);
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -264,6 +265,7 @@ public class SkeletonRenderer {
|
|||||||
color = mesh.getColor();
|
color = mesh.getColor();
|
||||||
|
|
||||||
} else if (attachment instanceof ClippingAttachment clip) {
|
} else if (attachment instanceof ClippingAttachment clip) {
|
||||||
|
clipper.clipEnd(slot);
|
||||||
clipper.clipStart(skeleton, slot, clip);
|
clipper.clipStart(skeleton, slot, clip);
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user