X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=pymeshio%2Fpmx%2F__init__.py;h=e367e46973bdbb9d20c0c25d545b0627a653641a;hb=924bae1667aea0f57dd3de11b1248c12bc9a95d1;hp=b794677840e977f33b528ab94c8059360789b8bd;hpb=b5839214d44aa31eecbdf0c5c9631b4085e88bcc;p=meshio%2Fpymeshio.git diff --git a/pymeshio/pmx/__init__.py b/pymeshio/pmx/__init__.py index b794677..e367e46 100644 --- a/pymeshio/pmx/__init__.py +++ b/pymeshio/pmx/__init__.py @@ -107,8 +107,8 @@ class IkLink(Diff): def __init__(self, bone_index, limit_angle, limit_min=None, limit_max=None): self.bone_index=bone_index self.limit_angle=limit_angle - self.limit_min=limit_min or common.Vector3 - self.limit_max=limit_max or common.Vector3 + self.limit_min=limit_min or common.Vector3() + self.limit_max=limit_max or common.Vector3() def __eq__(self, rhs): return ( @@ -171,13 +171,13 @@ class Bone(Diff): self.parent_index=parent_index self.layer=layer self.flag=flag - self.tail_position=tail_position or common.Vector3 + self.tail_position=tail_position or common.Vector3() self.tail_index=tail_index self.effect_index=effect_index self.effect_factor=effect_factor - self.fixed_axis=fixed_axis or common.Vector3 - self.local_x_vector=local_x_vector or common.Vector3 - self.local_z_vector=local_z_vector or common.Vector3 + self.fixed_axis=fixed_axis or common.Vector3() + self.local_x_vector=local_x_vector or common.Vector3() + self.local_z_vector=local_z_vector or common.Vector3() self.external_key=external_key self.ik=ik @@ -497,7 +497,7 @@ class Morph(Diff): self._diff_array(rhs, 'offsets') -class VerexMorphOffset(Diff): +class VertexMorphOffset(Diff): """pmx vertex morph offset Attributes: @@ -694,7 +694,7 @@ class RigidBody(Diff): self._diff(rhs, 'no_collision_group') self._diff(rhs, 'shape_type') self._diff(rhs, 'shape_size') - #self._diff(rhs, 'shape_position') + self._diff(rhs, 'shape_position') self._diff(rhs, 'shape_rotation') self._diff(rhs, 'param') self._diff(rhs, 'mode')