Skip to content

Commit ba57286

Browse files
authored
1.9.24 - Fix Materials (#166)
* Fix Materials * 1.9.24 - version bump
1 parent f9e6e95 commit ba57286

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

UnityPy/__init__.py

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

33
from .environment import Environment
44
from .helpers.ArchiveStorageManager import set_assetbundle_decrypt_key

UnityPy/classes/Material.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ def __init__(self, reader):
88
version = self.version
99
self.m_Shader = PPtr(reader) # Shader
1010

11-
if version >= (2021,3): # 2021.3 and up
11+
if version >= (2021, 3): # 2021.3 and up
1212
self.m_ValidKeywords = reader.read_string_array()
1313
self.m_InvalidKeywords = reader.read_string_array()
1414
elif version >= (5,): # 5.0 and up
1515
self.m_ShaderKeywords = reader.read_aligned_string()
16-
self.m_LightmapFlags = reader.read_u_int()
1716
elif version >= (4, 1): # 4.x
1817
self.m_ShaderKeywords = reader.read_string_array()
1918

@@ -54,7 +53,7 @@ def __init__(self, reader):
5453
for _ in range(reader.read_int())
5554
}
5655

57-
if reader.version >= (2021,): # 2021.1 and up
56+
if reader.version >= (2021,): # 2021.1 and up
5857
self.m_Ints = {
5958
reader.read_aligned_string(): reader.read_int()
6059
for _ in range(reader.read_int())

0 commit comments

Comments
 (0)