mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[as3] Ensure clipper.clipEnd() is called appropriately. See #1694
This commit is contained in:
parent
8bb38a7fb0
commit
4be695bf28
@ -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.
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user