Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spritesheets not supporting single image
Issue lies is an oversight with how `max_width` is calculated. When having only a single image, it equals the `largest_size` and that leads to this particular if statement being skipped. As a result, `TexturePacker` was trying to fit (for example) a 64x64 image, with `max_width` being 64. This, and the fact that default `TexturePackerConfig` has `texture_padding` set to 2 leads to an error message `TextureTooLargeToFitIntoAtlas`. Tested different scenarious, including 127x128 and 128x127 images with no issues detected.
- Loading branch information