diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-05-24 14:51:54 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-05-24 14:51:54 +0300 |
commit | 0024e89eee5890684c885b46751a44ae39eda68d (patch) | |
tree | fccc2dfa3989eec6a130630d8cf2d8506e1277de /io_mesh_stl/blender_utils.py | |
parent | 23a6620ee1fb883927257d9bb22190bdf8adda24 (diff) |
Fix STL exporter for 2.8
Diffstat (limited to 'io_mesh_stl/blender_utils.py')
-rw-r--r-- | io_mesh_stl/blender_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_mesh_stl/blender_utils.py b/io_mesh_stl/blender_utils.py index 864335ab..d6ee400c 100644 --- a/io_mesh_stl/blender_utils.py +++ b/io_mesh_stl/blender_utils.py @@ -84,7 +84,7 @@ def faces_from_mesh(ob, global_matrix, use_mesh_modifiers=False, triangulate=Tru # get the modifiers try: - mesh = ob.to_mesh(bpy.context.scene, use_mesh_modifiers, "PREVIEW") + mesh = ob.to_mesh(bpy.context.depsgraph, use_mesh_modifiers) except RuntimeError: raise StopIteration |