[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4106] trunk/py/scripts/addons/ mesh_looptools.py: fix [#33657] Loop tools crash in face select mode
Campbell Barton
ideasman42 at gmail.com
Thu Dec 27 08:30:18 CET 2012
Revision: 4106
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4106
Author: campbellbarton
Date: 2012-12-27 07:30:18 +0000 (Thu, 27 Dec 2012)
Log Message:
-----------
fix [#33657] Loop tools crash in face select mode
Modified Paths:
--------------
trunk/py/scripts/addons/mesh_looptools.py
Modified: trunk/py/scripts/addons/mesh_looptools.py
===================================================================
--- trunk/py/scripts/addons/mesh_looptools.py 2012-12-26 21:42:40 UTC (rev 4105)
+++ trunk/py/scripts/addons/mesh_looptools.py 2012-12-27 07:30:18 UTC (rev 4106)
@@ -751,9 +751,16 @@
# 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
+
+
##########################################
####### Bridge functions #################
##########################################
@@ -2997,6 +3004,7 @@
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
More information about the Bf-extensions-cvs
mailing list