From 9a7673c68a595a9dda4f3547ad7db47f203b98ab Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Thu, 22 May 2014 15:15:18 +0200 Subject: [PATCH] Support TK2D PNG atlases. --- .../Assets/spine-tk2d/SpriteCollectionAttachmentLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-tk2d/Assets/spine-tk2d/SpriteCollectionAttachmentLoader.cs b/spine-tk2d/Assets/spine-tk2d/SpriteCollectionAttachmentLoader.cs index 97922af94..e4099552f 100644 --- a/spine-tk2d/Assets/spine-tk2d/SpriteCollectionAttachmentLoader.cs +++ b/spine-tk2d/Assets/spine-tk2d/SpriteCollectionAttachmentLoader.cs @@ -97,7 +97,7 @@ public class SpriteCollectionAttachmentLoader : AttachmentLoader { float y1 = def.boundsData[0].y - def.boundsData[1].y / 2; regionOffsetY = (int)((y1 - y0) / def.texelSize.y); - material = def.material; + material = def.materialInst; } public RegionAttachment NewRegionAttachment (Skin skin, String name, String path) {