浏览代码

Support TK2D PNG atlases.

NathanSweet 11 年之前
父节点
当前提交
9a7673c68a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-tk2d/Assets/spine-tk2d/SpriteCollectionAttachmentLoader.cs

+ 1 - 1
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) {