ZE crash fixes

This commit is contained in:
Will Snyder
2020-11-23 10:15:22 -05:00
parent fb072f8d59
commit 20ad9a48d5
4 changed files with 27 additions and 29 deletions

View File

@@ -27,6 +27,7 @@ def extract_anim(armature: bpy.types.Armature) -> Animation:
anim.end_index = num_frames - 1
anim.bone_transforms["DummyRoot"] = []
for bone in armature.data.bones:
anim.bone_transforms[bone.name] = []
@@ -35,6 +36,7 @@ def extract_anim(armature: bpy.types.Armature) -> Animation:
frame_time = framerange.x + frame * increment
bpy.context.scene.frame_set(frame_time)
anim.bone_transforms["DummyRoot"].append(ModelTransform())
for bone in armature.pose.bones:
transform = bone.matrix