pmdとmqoの入出力ライブラリと、それを使ったBlender2.5向けのaddon。
リビジョン | f682265b84fc3ac5abe7b4f6d9256e3123ef5828 (tree) |
---|---|
日時 | 2011-10-15 02:25:06 |
作者 | ousttrue <ousttrue@gmai...> |
コミッター | ousttrue |
fix converter shape_position
@@ -298,7 +298,8 @@ def pmd_to_pmx(src): | ||
298 | 298 | no_collision_group=r.no_collision_group, |
299 | 299 | shape_type=r.shape_type, |
300 | 300 | shape_size=r.shape_size, |
301 | - shape_position=r.shape_position, | |
301 | + shape_position=(r.shape_position+src.bones[0].pos if r.bone_index==-1 | |
302 | + else r.shape_position+src.bones[r.bone_index].pos), | |
302 | 303 | shape_rotation=r.shape_rotation, |
303 | 304 | mass=r.mass, |
304 | 305 | linear_damping=r.linear_damping, |
@@ -694,7 +694,7 @@ class RigidBody(Diff): | ||
694 | 694 | self._diff(rhs, 'no_collision_group') |
695 | 695 | self._diff(rhs, 'shape_type') |
696 | 696 | self._diff(rhs, 'shape_size') |
697 | - #self._diff(rhs, 'shape_position') | |
697 | + self._diff(rhs, 'shape_position') | |
698 | 698 | self._diff(rhs, 'shape_rotation') |
699 | 699 | self._diff(rhs, 'param') |
700 | 700 | self._diff(rhs, 'mode') |