Hardcoded open override exporting, coord sys conversions need adjustment

This commit is contained in:
Will Snyder
2020-10-11 20:52:34 -04:00
parent 603068b5b5
commit 8dea6fac49
4 changed files with 15 additions and 8 deletions

View File

@@ -34,11 +34,20 @@ def gather_animdata(armature: bpy.types.Armature) -> List[Animation]:
for bone in armature.pose.bones:
xform = ModelTransform()
xform.translation = convert_vector_space(bone.location)
vt = convert_vector_space(bone.location);
xform.translation = Vector((vt.x * -1.0, vt.y, vt.z))
xform.rotation = convert_rotation_space(bone.rotation_quaternion)
'''
xform.translation = bone.location
xform.rotation = bone.rotation_quaternion
anim_data.bone_transforms[bone.name].append(xform)
'''
return [anim_data]