mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
Clean up.
This commit is contained in:
parent
6271128587
commit
04552b74e5
@ -95,11 +95,10 @@ public class SkeletonSprite extends DisplayObject {
|
|||||||
_polygonBatch.begin(support, alpha, blendMode);
|
_polygonBatch.begin(support, alpha, blendMode);
|
||||||
addToBatch(_polygonBatch, alpha, transformationMatrix);
|
addToBatch(_polygonBatch, alpha, transformationMatrix);
|
||||||
for(var i:int = parent.getChildIndex(this) + 1, n:int = parent.numChildren; i < n; ++i) {
|
for(var i:int = parent.getChildIndex(this) + 1, n:int = parent.numChildren; i < n; ++i) {
|
||||||
var skeletonSprite:SkeletonSprite = parent.getChildAt(i) as SkeletonSprite;
|
var sibling:SkeletonSprite = parent.getChildAt(i) as SkeletonSprite;
|
||||||
if (!skeletonSprite || !skeletonSprite.batchable || skeletonSprite.blendMode != blendMode
|
if (!sibling || !sibling.batchable || sibling.blendMode != blendMode || !sibling.visible) break;
|
||||||
|| !skeletonSprite.visible) break;
|
sibling._batched = true;
|
||||||
skeletonSprite._batched = true;
|
sibling.addToBatch(_polygonBatch, alpha, sibling.transformationMatrix);
|
||||||
skeletonSprite.addToBatch(_polygonBatch, alpha, skeletonSprite.transformationMatrix);
|
|
||||||
}
|
}
|
||||||
_polygonBatch.end();
|
_polygonBatch.end();
|
||||||
support.pushMatrix();
|
support.pushMatrix();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user