Fixed issue #36.

This commit is contained in:
NathanSweet 2013-04-26 00:59:36 +02:00
parent 66309c203c
commit cef85a86c7

View File

@ -73,10 +73,8 @@ namespace Spine {
List<Slot> drawOrder = skeleton.DrawOrder; List<Slot> drawOrder = skeleton.DrawOrder;
for (int i = 0, n = drawOrder.Count; i < n; i++) { for (int i = 0, n = drawOrder.Count; i < n; i++) {
Slot slot = drawOrder[i]; Slot slot = drawOrder[i];
Attachment attachment = slot.Attachment; RegionAttachment regionAttachment = slot.Attachment as RegionAttachment;
if (attachment is RegionAttachment) { if (regionAttachment != null) {
RegionAttachment regionAttachment = (RegionAttachment)attachment;
SpriteBatchItem item = batcher.CreateBatchItem(); SpriteBatchItem item = batcher.CreateBatchItem();
item.Texture = (Texture2D)regionAttachment.Texture; item.Texture = (Texture2D)regionAttachment.Texture;