OSDN Git Service

add examples
[meshio/pymeshio.git] / blender25-meshio / export_mqo.py
index 45ef006..7c1f4b7 100644 (file)
@@ -228,12 +228,15 @@ class MqoExporter(object):
             # duplicate and applyMatrix
             copyMesh, copyObj=bl.object.duplicate(obj)
             # apply transform
+            """
             copyObj.scale=obj.scale
             bpy.ops.object.scale_apply()
             copyObj.rotation_euler=obj.rotation_euler
             bpy.ops.object.rotation_apply()
             copyObj.location=obj.location
             bpy.ops.object.location_apply()
+            """
+            copyMesh.transform(obj.matrix_world)
             # apply modifier
             if self.apply_modifier:
                 # remove shape key