mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Ensure clipping always ends.
This commit is contained in:
parent
5af8185261
commit
15961df0e3
@ -121,7 +121,7 @@ public class SkeletonRenderer implements Disposable {
|
||||
|
||||
clipper.clipEnd(i);
|
||||
}
|
||||
clipper.clipEnd(-1);
|
||||
clipper.clipEnd();
|
||||
}
|
||||
|
||||
@SuppressWarnings("null")
|
||||
@ -223,7 +223,7 @@ public class SkeletonRenderer implements Disposable {
|
||||
|
||||
clipper.clipEnd(i);
|
||||
}
|
||||
clipper.clipEnd(-1);
|
||||
clipper.clipEnd();
|
||||
}
|
||||
|
||||
@SuppressWarnings("null")
|
||||
@ -332,7 +332,7 @@ public class SkeletonRenderer implements Disposable {
|
||||
|
||||
clipper.clipEnd(i);
|
||||
}
|
||||
clipper.clipEnd(-1);
|
||||
clipper.clipEnd();
|
||||
}
|
||||
|
||||
public void setPremultipliedAlpha (boolean premultipliedAlpha) {
|
||||
|
||||
@ -64,7 +64,11 @@ public class SkeletonClipping {
|
||||
}
|
||||
|
||||
public void clipEnd (int index) {
|
||||
if (clipAttachment == null || clipAttachment.getEndSlot() != index) return;
|
||||
if (clipAttachment != null && clipAttachment.getEndSlot() == index) clipEnd();
|
||||
}
|
||||
|
||||
public void clipEnd () {
|
||||
if (clipAttachment == null) return;
|
||||
clipAttachment = null;
|
||||
clippingPolygons = null;
|
||||
clippedVertices.clear();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user