Skip to content

Commit 2eb2c98

Browse files
squaresmileK0lb3
authored andcommitted
Fix ETC_RGB4 export
1 parent 3e7f76b commit 2eb2c98

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎UnityPy/export/Texture2DConverter.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def eac(image_data: bytes, width: int, height: int, fmt: list):
161161
( TF.PVRTC_RGBA2, pvrtc, True ),
162162
( TF.PVRTC_RGB4, pvrtc, False ),
163163
( TF.PVRTC_RGBA4, pvrtc, True ),
164-
( TF.ETC_RGB4, etc, 0 ),
164+
( TF.ETC_RGB4, etc, (1,) ),
165165
( TF.ATC_RGB4, atc, False ),
166166
( TF.ATC_RGBA8, atc, True ),
167167
( TF.EAC_R, eac, "EAC_R" ),
@@ -183,11 +183,11 @@ def eac(image_data: bytes, width: int, height: int, fmt: list):
183183
( TF.ASTC_RGBA_8x8, astc, (8,8) ),
184184
( TF.ASTC_RGBA_10x10, astc, (10,10) ),
185185
( TF.ASTC_RGBA_12x12, astc, (12,12) ),
186-
( TF.ETC_RGB4_3DS, etc, (1) ),
187-
( TF.ETC_RGBA8_3DS, etc, (1) ),
186+
( TF.ETC_RGB4_3DS, etc, (1,) ),
187+
( TF.ETC_RGBA8_3DS, etc, (1,) ),
188188
( TF.RG16, ),
189189
( TF.R8, pillow, "RGB", "raw", "R" ),
190-
( TF.ETC_RGB4Crunched, etc, (1) ),
190+
( TF.ETC_RGB4Crunched, etc, (1,) ),
191191
( TF.ETC2_RGBA8Crunched, etc, (2, "A8") ),
192192
( TF.ASTC_HDR_4x4, astc, (4,4) ),
193193
( TF.ASTC_HDR_5x5, astc, (5,5) ),

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
setuptools.setup(
77
name="UnityPy",
88
packages=setuptools.find_packages(),
9-
version="1.4.0",
9+
version="1.4.1",
1010
author="K0lb3",
1111
description="A pythonic port of AssetStudio by Perfare",
1212
long_description=long_description,

0 commit comments

Comments
 (0)