From: ousttrue Date: Sun, 29 May 2011 04:02:25 +0000 (+0900) Subject: fix apply transform X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=aae67567d4e9c1c476a7f62f29d2bf8d22e40b83;hp=3cb160e454594f2a38d8a75b1b34a76ba8e8d55c;p=meshio%2Fpymeshio.git fix apply transform --- diff --git a/blender25-meshio/export_pmd.py b/blender25-meshio/export_pmd.py index af4fc6e..cb77bcc 100644 --- a/blender25-meshio/export_pmd.py +++ b/blender25-meshio/export_pmd.py @@ -466,15 +466,13 @@ class OneSkinMesh(object): if CONSTRAINT_A in obj: return - #if not bl.modifier.hasType(obj, 'ARMATURE'): - # return - bl.message("export: %s" % obj.name) # メッシュのコピーを生成してオブジェクトの行列を適用する copyMesh, copyObj=bl.object.duplicate(obj) if len(copyMesh.vertices)>0: # apply transform + """ try: # svn 36722 copyObj.scale=obj.scale @@ -491,6 +489,8 @@ class OneSkinMesh(object): bpy.ops.object.rotation_apply() copyObj.location=obj.location bpy.ops.object.location_apply() + """ + copyMesh.transform(obj.matrix_world) # apply modifier for m in [m for m in copyObj.modifiers]: