Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions UnityPy/helpers/MeshHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def decompress_compressed_mesh(self):
shape=(uvDim,),
)
setattr(self, f"m_UV{uv_channel}", m_UV)
uvSrcOffset = uvDim * m_VertexCount
uvSrcOffset += uvDim * m_VertexCount
else:
self.m_UV0 = unpack_floats(m_CompressedMesh.m_UV, 0, m_VertexCount * 2, shape=(2,))
if m_CompressedMesh.m_UV.m_NumItems >= m_VertexCount * 4:
Expand Down Expand Up @@ -608,7 +608,7 @@ def decompress_compressed_mesh(self):
# we read three weights, but they don't add up to one. calculate the fourth one, and read
# missing bone index. continue with next vertex.
elif j == 3: #
boneWeights[vertexIndex][j] = 1 - sum
boneWeights[vertexIndex][j] = (31 - sum) / 31
boneIndices[vertexIndex][j] = next(boneIndicesIterator)

vertexIndex += 1
Expand Down
Loading