Skip to content

Commit

Permalink
Fixed texture packer legacy output having wrong Y value when using pa…
Browse files Browse the repository at this point in the history
…dding.
  • Loading branch information
NathanSweet committed Nov 7, 2021
1 parent c62ccf9 commit 08cd7fd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,7 @@ private void writePageLegacy (OutputStreamWriter writer, Page page) throws IOExc
private void writeRectLegacy (Writer writer, Page page, Rect rect, String name) throws IOException {
writer.write(Rect.getAtlasName(name, settings.flattenPaths) + "\n");
writer.write(" rotate: " + rect.rotated + "\n");
writer
.write(" xy: " + (page.x + rect.x) + ", " + (page.y + page.height - rect.y - (rect.height - settings.paddingY)) + "\n");
writer.write(" xy: " + (page.x + rect.x) + ", " + (page.y + page.height - rect.y - rect.height) + "\n");

writer.write(" size: " + rect.regionWidth + ", " + rect.regionHeight + "\n");
if (rect.splits != null) {
Expand Down

0 comments on commit 08cd7fd

Please sign in to comment.