X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=swig%2Fblender%2Fpmd_export.py;h=73d71f11dff214423ad425dcfb9be6b5b284033a;hb=20b804521c97bc0b39092cda13f2bf9b744725c6;hp=1d863cc511dd79d1332b09bf8391718749038249;hpb=17c0df3dbdbd871580faf8c883d45b577793cc24;p=meshio%2Fmeshio.git diff --git a/swig/blender/pmd_export.py b/swig/blender/pmd_export.py index 1d863cc..73d71f1 100644 --- a/swig/blender/pmd_export.py +++ b/swig/blender/pmd_export.py @@ -35,6 +35,7 @@ RIGID_LINEAR_DAMPING='rigid_linear_damping' RIGID_ANGULAR_DAMPING='rigid_angular_damping' RIGID_RESTITUTION='rigid_restitution' RIGID_FRICTION='rigid_friction' +CONSTRAINT_NAME='constraint_name' CONSTRAINT_A='const_a' CONSTRAINT_B='const_b' CONSTRAINT_POS_MIN='const_pos_min' @@ -974,7 +975,7 @@ class PmdExporter(object): # constraint for obj in self.oneSkinMesh.constraints: constraint=io.addConstraint() - constraint.setName(obj.name[1:].encode('cp932')) + constraint.setName(obj[CONSTRAINT_NAME].encode('cp932')) constraint.rigidA=rigidNameMap[obj[CONSTRAINT_A]] constraint.rigidB=rigidNameMap[obj[CONSTRAINT_B]] constraint.pos.x=obj.location[0]