[Bf-extensions-cvs] [29bbe142] master: Merge remote-tracking branch 'origin/blender-v2.81-release'

Dalai Felinto noreply at git.blender.org
Mon Jan 13 13:26:02 CET 2020


Commit: 29bbe142eae839c001334bae1844d9a2c6b0fa09
Author: Dalai Felinto
Date:   Mon Jan 13 13:25:36 2020 +0100
Branches: master
https://developer.blender.org/rBA29bbe142eae839c001334bae1844d9a2c6b0fa09

Merge remote-tracking branch 'origin/blender-v2.81-release'

This was neglected during the 2.81 development cycle.

===================================================================



===================================================================

diff --cc io_mesh_stl/blender_utils.py
index 8589e196,63f0c4f2..97621d11
--- a/io_mesh_stl/blender_utils.py
+++ b/io_mesh_stl/blender_utils.py
@@@ -77,10 -77,9 +77,11 @@@ def faces_from_mesh(ob, global_matrix, 
          Split the quad into two triangles
      """
  
 +    import bpy
 +
      # get the editmode data
-     ob.update_from_editmode()
+     if ob.mode == "EDIT":
+         ob.update_from_editmode()
  
      # get the modifiers
      if use_mesh_modifiers:



More information about the Bf-extensions-cvs mailing list