[Bf-extensions-cvs] [14420434] master: Revert "STL: fix T72145 crash exporting object without data"
Campbell Barton
noreply at git.blender.org
Mon Dec 9 10:17:33 CET 2019
Commit: 14420434d2aa4c0c1d7897440e40f1656ea57de0
Author: Campbell Barton
Date: Mon Dec 9 20:17:00 2019 +1100
Branches: master
https://developer.blender.org/rBA14420434d2aa4c0c1d7897440e40f1656ea57de0
Revert "STL: fix T72145 crash exporting object without data"
This reverts commit 2f425cc128b8b709cc1ebf2c96ad372778f4aeda.
The crash has since been fixed in the API.
===================================================================
M io_mesh_stl/blender_utils.py
===================================================================
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
More information about the Bf-extensions-cvs
mailing list