Skip to content

Commit

Permalink
Revert "STL: fix T72145 crash exporting object without data"
Browse files Browse the repository at this point in the history
This reverts commit 2f425cc.

The crash has since been fixed in the API.
  • Loading branch information
ideasman42 committed Dec 9, 2019
1 parent f72fce5 commit 1442043
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions io_mesh_stl/blender_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ def faces_from_mesh(ob, global_matrix, use_mesh_modifiers=False):
import bpy

# get the editmode data
if ob.mode == "EDIT":
ob.update_from_editmode()
ob.update_from_editmode()

# get the modifiers
if use_mesh_modifiers:
Expand All @@ -95,7 +94,6 @@ def faces_from_mesh(ob, global_matrix, use_mesh_modifiers=False):
mesh = mesh_owner.to_mesh()
except RuntimeError:
return

if mesh is None:
return

Expand Down

0 comments on commit 1442043

Please sign in to comment.