Explorar o código

Fixed atlas attachment loader.

NathanSweet %!s(int64=12) %!d(string=hai) anos
pai
achega
d0ebe5515e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      spine-csharp/src/Attachments/AtlasAttachmentLoader.cs

+ 1 - 1
spine-csharp/src/Attachments/AtlasAttachmentLoader.cs

@@ -40,7 +40,7 @@ namespace Spine {
 				AtlasRegion region = atlas.FindRegion(name);
 				if (region == null) throw new Exception("Region not found in atlas: " + name + " (" + type + ")");
 				RegionAttachment attachment = new RegionAttachment(name);
-				attachment.RendererObject = region.page.rendererObject;
+				attachment.RendererObject = region;
 				attachment.SetUVs(region.u, region.v, region.u2, region.v2, region.rotate);
 				attachment.RegionOffsetX = region.offsetX;
 				attachment.RegionOffsetY = region.offsetY;