Переглянути джерело

[as3] Fixed SkeletonSprite, should not process slots with inactive bones.

badlogic 6 роки тому
батько
коміт
8cd53746ad

BIN
spine-as3/spine-as3-example/lib/spine-as3.swc


+ 1 - 0
spine-as3/spine-as3/src/spine/flash/SkeletonSprite.as

@@ -91,6 +91,7 @@ package spine.flash {
 			var drawOrder : Vector.<Slot> = skeleton.drawOrder;
 			for (var i : int = 0, n : int = drawOrder.length; i < n; i++) {
 				var slot : Slot = drawOrder[i];
+				if (!slot.bone.active) continue;
 				var regionAttachment : RegionAttachment = slot.attachment as RegionAttachment;
 				if (!regionAttachment) continue;
 

BIN
spine-starling/spine-starling-example/lib/spine-as3.swc


BIN
spine-starling/spine-starling/lib/spine-as3.swc