From 9e11509b70067c0c24fec6f1c38e7c4b93ba7f06 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 7 Feb 2013 04:25:53 +0000 Subject: make option for applying modifiers consistent --- io_mesh_ply/__init__.py | 4 ++-- io_mesh_ply/export_ply.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'io_mesh_ply') 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 -- cgit v1.2.3