odrick / free-tex-packer

Free texture packer
http://free-tex-packer.com/
MIT License
897 stars 161 forks source link

0.6.7 Extrusion bug #65

Open JoakimCh opened 2 years ago

JoakimCh commented 2 years ago

When extruding by x amount of pixels only the pixels at the edge should be repeated this many times. This is not the case, a red box with a blue outline (for example) will mix both blue and red in the extruded pixels.

This happens because ctx.imageSmoothingEnabled is true by default and needs to be set to false before doing the extrusion. This was previously fixed but sadly is broken again in 4ba6465c51b9d6e6cc524a6d618c0a5c0b0b60ba... Undo the changes in this commit inside the renderExtrude function to fix the bug.