mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
Support TK2D PNG atlases.
This commit is contained in:
parent
765452ce84
commit
9a7673c68a
@ -97,7 +97,7 @@ public class SpriteCollectionAttachmentLoader : AttachmentLoader {
|
|||||||
float y1 = def.boundsData[0].y - def.boundsData[1].y / 2;
|
float y1 = def.boundsData[0].y - def.boundsData[1].y / 2;
|
||||||
regionOffsetY = (int)((y1 - y0) / def.texelSize.y);
|
regionOffsetY = (int)((y1 - y0) / def.texelSize.y);
|
||||||
|
|
||||||
material = def.material;
|
material = def.materialInst;
|
||||||
}
|
}
|
||||||
|
|
||||||
public RegionAttachment NewRegionAttachment (Skin skin, String name, String path) {
|
public RegionAttachment NewRegionAttachment (Skin skin, String name, String path) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user