From 14420434d2aa4c0c1d7897440e40f1656ea57de0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 9 Dec 2019 20:17:00 +1100 Subject: Revert "STL: fix T72145 crash exporting object without data" This reverts commit 2f425cc128b8b709cc1ebf2c96ad372778f4aeda. The crash has since been fixed in the API. --- io_mesh_stl/blender_utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'io_mesh_stl') diff --git a/io_mesh_stl/blender_utils.py b/io_mesh_stl/blender_utils.py index 97621d11..8589e196 100644 --- a/io_mesh_stl/blender_utils.py +++ b/io_mesh_stl/blender_utils.py @@ -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 -- cgit v1.2.3