Fixing BVH mocap file with 90 deg twist

Hi,

I’ve noticed that there are some bones in BVH file which twists the end user armature wrongly by 90 degrees.
Because mocap tool addon can only twist the bone by 180 deg, I have added some codes to fix 90-degree twists.

You can fix 90-degree twists by clicking the axis icon next to the fix twist button.
(clicking both axis icon and twist icon to fix 270 deg twists)

I hope someone with the same problem will utilize my little fix.

mocap_m.zip (62.9 KB)