Skip to content

Commit

Permalink
Fix: The check-palette progress step was never shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
frosch123 committed Jan 25, 2015
1 parent f1ef330 commit a6134c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nml/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,6 @@ def nml(inputfile, input_filename, output_debug, outputfiles, start_sprite_num,
key = (file, mask_file)
sprite_files.setdefault(key, []).append(sprite)

generic.clear_progress()

# Check whether we can terminate sprite processing prematurely for
# dependency checks
skip_sprite_processing = True
Expand Down Expand Up @@ -364,6 +362,8 @@ def nml(inputfile, input_filename, output_debug, outputfiles, start_sprite_num,
encoder = spriteencoder.SpriteEncoder(compress_grf, crop_sprites, enable_cache, used_palette)
outputfile.encoder = encoder

generic.clear_progress()

# Read all image data, compress, and store in sprite cache
if encoder is not None:
encoder.open(sprite_files)
Expand Down
2 changes: 2 additions & 0 deletions nml/spriteencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def open(self, sprite_files):
"""
num_sprites = sum(len(sprite_list) for sprite_list in sprite_files.values())

generic.print_progress("Encoding ...")

num_cached = 0
num_dup = 0
num_enc = 0
Expand Down

0 comments on commit a6134c5

Please sign in to comment.