This commit is contained in:
Arron David Nelson 2024-03-26 20:01:16 -07:00
parent 9c39d1de13
commit 3ff68c37cd

View File

@ -114,8 +114,8 @@ def ExportAnimations(bytes, skeletons, animations):
bpy.context.object.animation_data.action = a
#Animation Name
bytes.extend(struct.pack("<Q", len(a.name)))
bytes.extend(str.encode(a.name))
bytes.append(0)
duration = 0.0
boneAnims = []
@ -257,11 +257,9 @@ def WriteMeshes(bytes, meshes, skeletons, animations):
Triangulate(mesh)
#Mesh Name Count
bytes.extend(struct.pack("<Q", len(mesh.name)))
#Mesh Name
bytes.extend(str.encode(mesh.name))
bytes.append(0)
#CloneMesh(mesh)
for i, loop in enumerate(mesh.data.loops):