diff options
Diffstat (limited to 'add_mesh_solid.py')
-rw-r--r-- | add_mesh_solid.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/add_mesh_solid.py b/add_mesh_solid.py index 540b6285..99bae8da 100644 --- a/add_mesh_solid.py +++ b/add_mesh_solid.py @@ -741,7 +741,7 @@ class Solids(bpy.types.Operator): def execute(self,context): # turn off undo for better performance (3 - 5x faster), also makes sure # that mesh ops are undoable and entire script acts as one operator - bpy.context.user_preferences.edit.global_undo = False + bpy.context.user_preferences.edit.use_global_undo = False props = self.properties @@ -794,7 +794,7 @@ class Solids(bpy.types.Operator): bpy.ops.object.mode_set(mode=current_mode) # turn undo back on - bpy.context.user_preferences.edit.global_undo = True + bpy.context.user_preferences.edit.use_global_undo = True return {'FINISHED'} |