mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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(i);
|
||||||
}
|
}
|
||||||
clipper.clipEnd(-1);
|
clipper.clipEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("null")
|
@SuppressWarnings("null")
|
||||||
@ -223,7 +223,7 @@ public class SkeletonRenderer implements Disposable {
|
|||||||
|
|
||||||
clipper.clipEnd(i);
|
clipper.clipEnd(i);
|
||||||
}
|
}
|
||||||
clipper.clipEnd(-1);
|
clipper.clipEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("null")
|
@SuppressWarnings("null")
|
||||||
@ -332,7 +332,7 @@ public class SkeletonRenderer implements Disposable {
|
|||||||
|
|
||||||
clipper.clipEnd(i);
|
clipper.clipEnd(i);
|
||||||
}
|
}
|
||||||
clipper.clipEnd(-1);
|
clipper.clipEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPremultipliedAlpha (boolean premultipliedAlpha) {
|
public void setPremultipliedAlpha (boolean premultipliedAlpha) {
|
||||||
|
|||||||
@ -64,7 +64,11 @@ public class SkeletonClipping {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void clipEnd (int index) {
|
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;
|
clipAttachment = null;
|
||||||
clippingPolygons = null;
|
clippingPolygons = null;
|
||||||
clippedVertices.clear();
|
clippedVertices.clear();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user