mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Fixed atlas attachment loader.
This commit is contained in:
parent
7318ec912a
commit
d0ebe5515e
@ -40,7 +40,7 @@ namespace Spine {
|
|||||||
AtlasRegion region = atlas.FindRegion(name);
|
AtlasRegion region = atlas.FindRegion(name);
|
||||||
if (region == null) throw new Exception("Region not found in atlas: " + name + " (" + type + ")");
|
if (region == null) throw new Exception("Region not found in atlas: " + name + " (" + type + ")");
|
||||||
RegionAttachment attachment = new RegionAttachment(name);
|
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.SetUVs(region.u, region.v, region.u2, region.v2, region.rotate);
|
||||||
attachment.RegionOffsetX = region.offsetX;
|
attachment.RegionOffsetX = region.offsetX;
|
||||||
attachment.RegionOffsetY = region.offsetY;
|
attachment.RegionOffsetY = region.offsetY;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user