diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-27 11:30:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-27 11:30:18 +0400 |
commit | be1edb7e389d7762d18449b918a826f0ca6fef08 (patch) | |
tree | f380379f7b6a6515c88c67144d2d8193facf05d7 /mesh_looptools.py | |
parent | 43f35007afa764147576aedd791772af60776412 (diff) |
fix [#33657] Loop tools crash in face select mode
Diffstat (limited to 'mesh_looptools.py')
-rw-r--r-- | mesh_looptools.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mesh_looptools.py b/mesh_looptools.py index f909033d..7b1509f0 100644 --- a/mesh_looptools.py +++ b/mesh_looptools.py @@ -751,7 +751,14 @@ def settings_write(self): # clean up and set settings back to original state def terminate(global_undo): - bpy.context.user_preferences.edit.use_global_undo = global_undo + context = bpy.context + + # update editmesh cached data + obj = context.active_object + if obj.mode == 'EDIT': + bmesh.update_edit_mesh(obj.data, tessface=True, destructive=True) + + context.user_preferences.edit.use_global_undo = global_undo ########################################## @@ -2997,6 +3004,7 @@ class Bridge(bpy.types.Operator): if self.remove_faces and old_selected_faces: bridge_remove_internal_faces(bm, old_selected_faces) # make sure normals are facing outside + bmesh.update_edit_mesh(object.data, tessface=False, destructive=True) bpy.ops.mesh.normals_make_consistent() # cleaning up |