map_editor: Fix automatic graphics decompression.

This commit is contained in:
yenatch 2014-10-02 23:47:00 -04:00
parent 0a68945a48
commit c9d9a16fd6

View File

@ -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 = []