Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-12-09 12:17:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-09 12:17:00 +0300
commit14420434d2aa4c0c1d7897440e40f1656ea57de0 (patch)
tree6fe100bb85c2bbb5d63953c3785d9e6462bd72e7 /io_mesh_stl
parentf72fce5e82ff3b59227d5e665ee2ab5634711cff (diff)
Revert "STL: fix T72145 crash exporting object without data"
This reverts commit 2f425cc128b8b709cc1ebf2c96ad372778f4aeda. The crash has since been fixed in the API.
Diffstat (limited to 'io_mesh_stl')
-rw-r--r--io_mesh_stl/blender_utils.py4
1 files changed, 1 insertions, 3 deletions
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