diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-07 08:25:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-07 08:25:53 +0400 |
commit | 9e11509b70067c0c24fec6f1c38e7c4b93ba7f06 (patch) | |
tree | f8540bde9c30863a530ad072ffed51060799155b /io_mesh_ply | |
parent | 05b77ae4f880355178641584939cfb87d6cc7638 (diff) |
make option for applying modifiers consistent
Diffstat (limited to 'io_mesh_ply')
-rw-r--r-- | io_mesh_ply/__init__.py | 4 | ||||
-rw-r--r-- | io_mesh_ply/export_ply.py | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py index 6672dae4..92b0bbdd 100644 --- a/io_mesh_ply/__init__.py +++ b/io_mesh_ply/__init__.py @@ -89,7 +89,7 @@ class ExportPLY(bpy.types.Operator, ExportHelper): filename_ext = ".ply" filter_glob = StringProperty(default="*.ply", options={'HIDDEN'}) - use_modifiers = BoolProperty( + use_mesh_modifiers = BoolProperty( name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default=True, @@ -127,7 +127,7 @@ class ExportPLY(bpy.types.Operator, ExportHelper): layout = self.layout row = layout.row() - row.prop(self, "use_modifiers") + row.prop(self, "use_mesh_modifiers") row.prop(self, "use_normals") row = layout.row() row.prop(self, "use_uv_coords") diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py index 4e67b0c9..5b466818 100644 --- a/io_mesh_ply/export_ply.py +++ b/io_mesh_ply/export_ply.py @@ -31,7 +31,7 @@ import os def save(operator, context, filepath="", - use_modifiers=True, + use_mesh_modifiers=True, use_normals=True, use_uv_coords=True, use_colors=True, @@ -55,7 +55,7 @@ def save(operator, if scene.objects.active: bpy.ops.object.mode_set(mode='OBJECT') - if use_modifiers: + if use_mesh_modifiers: mesh = obj.to_mesh(scene, True, 'PREVIEW') else: mesh = obj.data @@ -200,7 +200,7 @@ def save(operator, file.close() print("writing %r done" % filepath) - if use_modifiers: + if use_mesh_modifiers: bpy.data.meshes.remove(mesh) # XXX |