|
@@ -77,7 +77,8 @@ namespace Spine {
|
|
RegionAttachment regionAttachment = slot.Attachment as RegionAttachment;
|
|
RegionAttachment regionAttachment = slot.Attachment as RegionAttachment;
|
|
if (regionAttachment != null) {
|
|
if (regionAttachment != null) {
|
|
SpriteBatchItem item = batcher.CreateBatchItem();
|
|
SpriteBatchItem item = batcher.CreateBatchItem();
|
|
- item.Texture = (Texture2D)regionAttachment.RendererObject;
|
|
|
|
|
|
+ AtlasRegion region = (AtlasRegion)regionAttachment.RendererObject;
|
|
|
|
+ item.Texture = (Texture2D)region.page.rendererObject;
|
|
|
|
|
|
byte r = (byte)(skeleton.R * slot.R * 255);
|
|
byte r = (byte)(skeleton.R * slot.R * 255);
|
|
byte g = (byte)(skeleton.G * slot.G * 255);
|
|
byte g = (byte)(skeleton.G * slot.G * 255);
|