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_stl/blender_utils.py | |
parent | 05b77ae4f880355178641584939cfb87d6cc7638 (diff) |
make option for applying modifiers consistent
Diffstat (limited to 'io_mesh_stl/blender_utils.py')
-rw-r--r-- | io_mesh_stl/blender_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_mesh_stl/blender_utils.py b/io_mesh_stl/blender_utils.py index 1d24369e..5589da4e 100644 --- a/io_mesh_stl/blender_utils.py +++ b/io_mesh_stl/blender_utils.py @@ -41,14 +41,14 @@ def create_and_link_mesh(name, faces, points): obj.select = True -def faces_from_mesh(ob, apply_modifier=False, triangulate=True): +def faces_from_mesh(ob, use_mesh_modifiers=False, triangulate=True): """ From an object, return a generator over a list of faces. Each faces is a list of his vertexes. Each vertex is a tuple of his coordinate. - apply_modifier + use_mesh_modifiers Apply the preview modifier to the returned liste triangulate @@ -57,7 +57,7 @@ def faces_from_mesh(ob, apply_modifier=False, triangulate=True): # get the modifiers try: - mesh = ob.to_mesh(bpy.context.scene, apply_modifier, "PREVIEW") + mesh = ob.to_mesh(bpy.context.scene, use_mesh_modifiers, "PREVIEW") except RuntimeError: raise StopIteration |