Skip to content

Commit 5c8b7a3

Browse files
committed
set max_height back to 4k
1 parent 8f1b385 commit 5c8b7a3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

deppth2/texpacking.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ def build_atlases(source_dir, target_dir, basename, size, include_hulls=False):
3535

3636
return (hulls, namemap)
3737

38-
def build_atlases_hades(source_dir, target_dir, deppth_pack=True, include_hulls=False, logger=lambda s: None, codec='RGBA'):
38+
def build_atlases_hades(source_dir, target_dir, deppth2_pack=True, include_hulls=False, logger=lambda s: None, codec='RGBA'):
3939
"""
4040
Build texture atlases from images within a source directory.
4141
4242
Args:
4343
source_dir (str): The root directory to recursively search for images.
4444
target_dir (str): The target directory where the atlases will be saved. The atlases filenames will be named after the target directory name. The .pkg file too. (If created)
45-
deppth_pack (bool, optional): If True, automatically call pack for putting the built atlases into a SGG .pkg file. Defaults to True.
45+
deppth2_pack (bool, optional): If True, automatically call pack for putting the built atlases into a SGG .pkg file. Defaults to True.
4646
include_hulls (bool, optional): If True, computes convex hull points of images
4747
and includes them in the atlas data. Defaults to False.
4848
logger (callable, optional): A logging function that accepts a single string argument.
@@ -86,7 +86,7 @@ def build_atlases_hades(source_dir, target_dir, deppth_pack=True, include_hulls=
8686
namemap[filename.name] = str(filename)
8787

8888
# Perfom the packing. This will create the spritesheets and primitive atlases, which we'll need to turn to usable ones
89-
packer = PyTexturePacker.Packer.create(max_width=2880, max_height=2880, bg_color=0x00000000, atlas_format='json',
89+
packer = PyTexturePacker.Packer.create(max_width=4096, max_height=4096, bg_color=0x00000000, atlas_format='json',
9090
enable_rotated=False, trim_mode=1, border_padding=0, shape_padding=1)
9191
packer.pack(files, f'{basename}%d')
9292

@@ -113,7 +113,7 @@ def build_atlases_hades(source_dir, target_dir, deppth_pack=True, include_hulls=
113113
index += 1
114114

115115
# Create the packages
116-
if deppth_pack:
116+
if deppth2_pack:
117117
from .deppth2 import pack
118118
pack(target_dir, f'{target_dir}.pkg', *[], logger=lambda s: print(s), codec=codec)
119119

0 commit comments

Comments
 (0)