Manual merge of soc-2009-kazanbas branch:
[blender.git] / release / io / export_ply.py
index 98ce210aa1fb8b45bcbedaa2097ec421ae839f3e..8e79c3741bb5717dbcfa08c9dc34be1cd7515ef6 100644 (file)
@@ -78,7 +78,7 @@ def write(filename, scene, ob, \
        
        #mesh = BPyMesh.getMeshFromObject(ob, None, EXPORT_APPLY_MODIFIERS, False, scn) # XXX
        if EXPORT_APPLY_MODIFIERS:
-               mesh = ob.create_render_mesh(scene)
+               mesh = ob.create_mesh(True, 'PREVIEW')
        else:
                mesh = ob.data