Skip to content

Commit a0ff974

Browse files
committed
1.7.10: Texture2D - set_image function fix
1 parent ab269fc commit a0ff974

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎UnityPy/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.7.9"
1+
__version__ = "1.7.10"
22

33
from .environment import Environment
44

‎UnityPy/classes/Texture2D.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def image_data(self, data: bytes):
4545
self.m_StreamData.path = ""
4646

4747
def set_image(
48-
img: Image, target_format: TextureFormat = None, in_cab: bool = False
48+
self, img: Image, target_format: TextureFormat = None, in_cab: bool = False
4949
):
5050
img_data, tex_format = Texture2DConverter.image_to_texture(img)
5151
if img is None:

0 commit comments

Comments
 (0)