Test.
This commit is contained in:
parent
9c39d1de13
commit
3ff68c37cd
@ -114,8 +114,8 @@ def ExportAnimations(bytes, skeletons, animations):
|
|||||||
bpy.context.object.animation_data.action = a
|
bpy.context.object.animation_data.action = a
|
||||||
|
|
||||||
#Animation Name
|
#Animation Name
|
||||||
bytes.extend(struct.pack("<Q", len(a.name)))
|
|
||||||
bytes.extend(str.encode(a.name))
|
bytes.extend(str.encode(a.name))
|
||||||
|
bytes.append(0)
|
||||||
|
|
||||||
duration = 0.0
|
duration = 0.0
|
||||||
boneAnims = []
|
boneAnims = []
|
||||||
@ -257,11 +257,9 @@ def WriteMeshes(bytes, meshes, skeletons, animations):
|
|||||||
|
|
||||||
Triangulate(mesh)
|
Triangulate(mesh)
|
||||||
|
|
||||||
#Mesh Name Count
|
|
||||||
bytes.extend(struct.pack("<Q", len(mesh.name)))
|
|
||||||
|
|
||||||
#Mesh Name
|
#Mesh Name
|
||||||
bytes.extend(str.encode(mesh.name))
|
bytes.extend(str.encode(mesh.name))
|
||||||
|
bytes.append(0)
|
||||||
|
|
||||||
#CloneMesh(mesh)
|
#CloneMesh(mesh)
|
||||||
for i, loop in enumerate(mesh.data.loops):
|
for i, loop in enumerate(mesh.data.loops):
|
||||||
|
Loading…
Reference in New Issue
Block a user