We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6979baa commit 87a46fdCopy full SHA for 87a46fd
UnityPy/helpers/MeshHelper.py
@@ -166,8 +166,16 @@ def process(self):
166
167
# try to copy data directly from mesh
168
if isinstance(mesh, Mesh):
169
- if mesh.m_Use16BitIndices is False:
170
- self.m_Use16BitIndices = False
+ if mesh.m_Use16BitIndices is not None:
+ self.m_Use16BitIndices = bool(mesh.m_Use16BitIndices)
171
+ elif (
172
+ self.version >= (2017, 4)
173
+ or
174
+ # version == (2017, 3, 1) & patched - px string
175
+ self.version[:2] == (2017, 3)
176
+ and mesh.m_MeshCompression == 0
177
+ ):
178
+ self.m_Use16BitIndices = mesh.m_IndexFormat == 0
179
self.copy_from_mesh()
180
elif isinstance(mesh, SpriteRenderData):
181
self.copy_from_spriterenderdata()
0 commit comments