Skip to content

Commit

Permalink
use self.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 committed Jan 9, 2024
1 parent 526ec35 commit d55fa77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/splat_ext/tex_archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def pack_color(r, g, b, a):
palette_count = (0x20 if fmt_str == "CI4" else 0x200) // 2
if len(palette) > palette_count:
palette = palette[:palette_count]
print(f"warning: {self.img_name} has more than {palette_count} colors, truncating")
self.warn(f"{self.img_name} has more than {palette_count} colors, truncating")
elif len(palette) < palette_count:
palette += [(0, 0, 0, 0)] * (palette_count - len(palette))

Expand Down

0 comments on commit d55fa77

Please sign in to comment.