Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_mesh_ply/export_ply.py')
-rw-r--r--io_mesh_ply/export_ply.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py
index eab74ca8..48d1542f 100644
--- a/io_mesh_ply/export_ply.py
+++ b/io_mesh_ply/export_ply.py
@@ -190,7 +190,7 @@ def save(operator,
use_uv_coords=True,
use_colors=True,
):
-
+
scene = context.scene
obj = context.active_object
@@ -199,7 +199,7 @@ def save(operator,
obj.update_from_editmode()
- if use_mesh_modifiers:
+ if use_mesh_modifiers and obj.modifiers:
mesh = obj.to_mesh(scene, True, 'PREVIEW')
else:
mesh = obj.data.copy()
@@ -220,4 +220,4 @@ def save(operator,
if use_mesh_modifiers:
bpy.data.meshes.remove(mesh)
- return ret \ No newline at end of file
+ return ret