[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3047] trunk/py/scripts/addons/ mesh_inset/__init__.py: Missed fix to previous commit.

Howard Trickey howard.trickey at gmail.com
Wed Feb 29 16:40:29 CET 2012


Revision: 3047
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3047
Author:   howardt
Date:     2012-02-29 15:40:29 +0000 (Wed, 29 Feb 2012)
Log Message:
-----------
Missed fix to previous commit. Can't be in object mode to do bmesh edits.

Modified Paths:
--------------
    trunk/py/scripts/addons/mesh_inset/__init__.py

Modified: trunk/py/scripts/addons/mesh_inset/__init__.py
===================================================================
--- trunk/py/scripts/addons/mesh_inset/__init__.py	2012-02-29 14:42:13 UTC (rev 3046)
+++ trunk/py/scripts/addons/mesh_inset/__init__.py	2012-02-29 15:40:29 UTC (rev 3047)
@@ -110,12 +110,10 @@
     def action(self, context):
         save_global_undo = bpy.context.user_preferences.edit.use_global_undo
         bpy.context.user_preferences.edit.use_global_undo = False
-        bpy.ops.object.mode_set(mode='OBJECT')
         obj = bpy.context.active_object
         mesh = obj.data
         do_inset(mesh, self.inset_amount, self.inset_height, self.region,
             self.scale == 'PERCENT')
-        bpy.ops.object.mode_set(mode='EDIT')
         bpy.context.user_preferences.edit.use_global_undo = save_global_undo
 
 



More information about the Bf-extensions-cvs mailing list