Skip to content

Commit af05d6a

Browse files
committed
Fixed issue with padding and extrude offsets for fixed size atlas
1 parent a106c7f commit af05d6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fixedSize.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fixedSizeTA.bake = function(self)
6767
local x, y = x * widthPadded + self.padding, y * heightPadded + self.padding
6868
local image = self.images[index]
6969
lg.draw(image.image, extrudeQuad, x, y)
70-
self.quads[image.id] = lg.newQuad(x+self.extrude+self.padding, y+self.extrude+self.padding, width, height, widthCanvas, heightCanvas)
70+
self.quads[image.id] = lg.newQuad(x+self.extrude, y+self.extrude, width, height, widthCanvas, heightCanvas)
7171
end
7272
end
7373
lg.pop()

0 commit comments

Comments
 (0)