Fix STL exporter for 2.8

This commit is contained in:
Dalai Felinto
2018-05-24 13:51:54 +02:00
parent 23a6620ee1
commit 0024e89eee

View File

@ -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