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>2011-03-14 04:38:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-14 04:38:56 +0300
commit374c7c2a7ba029236c9cceb63218453579ba70d8 (patch)
tree30945030129c2276adf4edf4de6a1c6f7ed73b28 /io_mesh_stl/blender_utils.py
parent741b7caf2267913135d1c352285ef4702f7f3fc7 (diff)
update for changes in rna api
Diffstat (limited to 'io_mesh_stl/blender_utils.py')
-rw-r--r--io_mesh_stl/blender_utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/io_mesh_stl/blender_utils.py b/io_mesh_stl/blender_utils.py
index eb31e86a..1058064b 100644
--- a/io_mesh_stl/blender_utils.py
+++ b/io_mesh_stl/blender_utils.py
@@ -54,8 +54,7 @@ def faces_from_mesh(ob, apply_modifier=False, triangulate=True):
# get the modifiers
try:
- mesh = ob.create_mesh(bpy.context.scene,
- apply_modifier, "PREVIEW")
+ mesh = ob.to_mesh(bpy.context.scene, apply_modifier, "PREVIEW")
except RuntimeError:
return ()