Эх сурвалжийг харах

Support TK2D PNG atlases.

NathanSweet 11 жил өмнө
parent
commit
9a7673c68a

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