mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-03-21 17:24:42 -05:00
map_editor: Fix automatic graphics decompression.
This commit is contained in:
parent
0a68945a48
commit
c9d9a16fd6
|
|
@ -577,7 +577,9 @@ class Tileset:
|
|||
def get_tiles(self):
|
||||
filename = self.get_tileset_gfx_filename()
|
||||
if not os.path.exists(filename):
|
||||
gfx.export_2bpp_to_png(filename.replace('.png','.2bpp'))
|
||||
# Crystal still isn't ready for pngs.
|
||||
if self.config.version == 'crystal':
|
||||
gfx.convert_to_png([filename.replace('.png', '.2bpp.lz')])
|
||||
self.img = Image.open(filename)
|
||||
self.img.width, self.img.height = self.img.size
|
||||
self.tiles = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user