Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 61f34d2

Browse files
committedMay 28, 2025
fix(MeshHelper): Tangent signs weren't using shape (2,)
1 parent 87a46fd commit 61f34d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎UnityPy/helpers/MeshHelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ def decompress_compressed_mesh(self):
583583
# Tangent
584584
if m_CompressedMesh.m_Tangents.m_NumItems > 0:
585585
tangentData = unpack_floats(m_CompressedMesh.m_Tangents, shape=(2,))
586-
signs = unpack_ints(m_CompressedMesh.m_TangentSigns)
586+
signs = unpack_ints(m_CompressedMesh.m_TangentSigns, shape=(2,))
587587
self.m_Tangents = zeros((self.m_VertexCount, 4))
588588
for srcTan, (sign_z, sign_w), dstTan in zip(
589589
tangentData, signs, self.m_Tangents

0 commit comments

Comments
 (0)
Please sign in to comment.