From aae67567d4e9c1c476a7f62f29d2bf8d22e40b83 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Sun, 29 May 2011 13:02:25 +0900 Subject: [PATCH] fix apply transform --- blender25-meshio/export_pmd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]: -- 2.11.0