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:
authorCampbell Barton <ideasman42@gmail.com>2013-03-22 04:08:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-22 04:08:36 +0400
commitfdd1e4dcdc63b3fda8300e4f46fcf8010ae928af (patch)
treebd533ce6a7c776b5c95a2c0186b17fc61840abe7 /io_mesh_ply/export_ply.py
parentc8a1a563ae50255dd52923928dec674684eae541 (diff)
only apply modifiers if the mesh has modifiers
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