[Bf-extensions-cvs] [0024e89e] blender2.8: Fix STL exporter for 2.8
Dalai Felinto
noreply at git.blender.org
Thu May 24 13:51:57 CEST 2018
Commit: 0024e89eee5890684c885b46751a44ae39eda68d
Author: Dalai Felinto
Date: Thu May 24 13:51:54 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBA0024e89eee5890684c885b46751a44ae39eda68d
Fix STL exporter for 2.8
===================================================================
M io_mesh_stl/blender_utils.py
===================================================================
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
More information about the Bf-extensions-cvs
mailing list