Update __init__.py

Fixed bone name export.
This commit is contained in:
Arron David Nelson 2024-06-26 16:51:31 -07:00
parent 3ff68c37cd
commit 42fca1b0a3

View File

@ -83,8 +83,8 @@ def ExportSkeletons(bytes, skeletons):
bytes.extend(struct.pack("<B", len(skeletons[0].data.bones))) bytes.extend(struct.pack("<B", len(skeletons[0].data.bones)))
for b in skeletons[0].data.bones: for b in skeletons[0].data.bones:
bytes.extend(struct.pack("<Q", len(b.name)))
bytes.extend(str.encode(b.name)) bytes.extend(str.encode(b.name))
bytes.append(0)
flipMatrix = axis_conversion(from_forward='Y', from_up='Z', to_forward='Z', to_up='Y').to_4x4() flipMatrix = axis_conversion(from_forward='Y', from_up='Z', to_forward='Z', to_up='Y').to_4x4()