Subdirize assets, add TSX support

This commit is contained in:
2025-09-15 09:28:12 -05:00
parent 517b39649c
commit cafeda4368
17 changed files with 124 additions and 37 deletions

View File

@@ -8,8 +8,11 @@ from assethelpers import getAssetRelativePath
images = []
def processImage(asset):
type = asset['options'].get('type', 'PALETTIZED').upper()
if type == 'PALETTIZED':
type = None
if 'type' in asset['options']:
type = asset['options'].get('type', 'PALETTIZED').upper()
if type == 'PALETTIZED' or type is None:
return processPalettizedImage(asset)
elif type == 'ALPHA':
return processAlphaImage(asset)