Test.
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user