Revert "STL: fix T72145 crash exporting object without data"

This reverts commit 2f425cc128.

The crash has since been fixed in the API.
This commit is contained in:
Campbell Barton 2019-12-09 20:17:00 +11:00
parent f72fce5e82
commit 14420434d2
Notes: blender-bot 2023-02-14 19:04:24 +01:00
Referenced by issue #72145, Import-Export STL Format Hard Crash
1 changed files with 1 additions and 3 deletions

View File

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