[as3] Ensure clipper.clipEnd() is called appropriately. See #1694

This commit is contained in:
Mario Zechner 2021-06-14 15:23:41 +02:00
parent 8bb38a7fb0
commit 4be695bf28
2 changed files with 6 additions and 2 deletions

View File

@ -16,7 +16,7 @@ For the official legal terms governing the Spine Runtimes, please read the [Spin
spine-as3 works with data exported from Spine 3.9.xx.
spine-as3 supports all Spine features, including meshes. If using the `spine.flash` classes for rendering, meshes and two color tinting are not supported.
spine-as3 supports all Spine features, including meshes. If using the `spine.flash` classes for rendering, meshes, clipping, and two color tinting are not supported.
## Usage
1. Create a new Flex or Adobe AIR project in your preferred IDE.

View File

@ -98,7 +98,10 @@ package spine.starling {
for (var i : int = 0, n : int = drawOrder.length; i < n; ++i) {
var worldVertices : Vector.<Number> = _tempVertices;
var slot : Slot = drawOrder[i];
if (!slot.bone.active) continue;
if (!slot.bone.active) {
clipper.clipEndWithSlot(slot);
continue;
}
if (slot.attachment is RegionAttachment) {
var region : RegionAttachment = slot.attachment as RegionAttachment;
@ -156,6 +159,7 @@ package spine.starling {
clipper.clipStart(slot, clip);
continue;
} else {
clipper.clipEndWithSlot(slot);
continue;
}