Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-08-17 19:59:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-17 19:59:53 +0400
commitae93f3ea37ce1c5e98515fe128b162f507e4dcfc (patch)
tree7db2a37a14b22ab7cf93525ff03ea8d421e1780a /add_mesh_solid.py
parent8c5206e4286a3cb63ebecf4ceef15b76276107e1 (diff)
update for api changes
Diffstat (limited to 'add_mesh_solid.py')
-rw-r--r--add_mesh_solid.py4
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'}