2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 18:24:55 +00:00

Updates for new ANIM extract

This commit is contained in:
Jack Andersen
2016-04-06 17:38:37 -10:00
parent f7826ad7ec
commit 761be432be
7 changed files with 118 additions and 6 deletions

View File

@@ -114,7 +114,8 @@ def animin_loop(globals):
crv.keyframe_points.add(count=key_info[1])
if crv_type[0] == 1:
trans_head = globals['bone_trans_head'][key_info[0]]
#trans_head = globals['bone_trans_head'][key_info[0]]
trans_head = 0
for k in range(key_info[1]):
key_data = struct.unpack('if', os.read(readfd, 8))
pt = crv.keyframe_points[k]
@@ -188,6 +189,14 @@ def dataout_loop():
writepipeline(b'OK')
hecl.sact.cook(writepipebuf)
elif cmdargs[0] == 'GETARMATURENAMES':
writepipeline(b'OK')
hecl.sact.get_armature_names(writepipebuf)
elif cmdargs[0] == 'GETACTIONNAMES':
writepipeline(b'OK')
hecl.sact.get_action_names(writepipebuf)
# Command loop
while True: