sugiany/blender_mmd_tools — pull request #4 by iRi-E (2013-01-14 17:20:00+00:00)
Title: Bugfix: VMD importer: Calculation to convert bone location is incorrect.

Importing vmd file produces wrong result if a pose bone has head and tail with different x components.

Examples that we can see the problem:

1) "トゥインクル" motion data (created by なつき)

http://www.nicovideo.jp/watch/sm17579377

Importing kasa.vmd to kasa_開閉モーフ付き.pmd places the umbrella in incorrect location.

2) "こっち向いてBaby" stage + motion data (created by azaidoue)

http://www.nicovideo.jp/watch/sm13315816

Importing お菓子屋ステージモーション.vmd to お菓子屋.pmd throws the boxes to incorrect directions (frames 2731-2804).

I modified the calculation and confirmed the importer works fine now.