Hardcoded open override exporting, coord sys conversions need adjustment
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user