diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-17 19:59:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-17 19:59:53 +0400 |
commit | ae93f3ea37ce1c5e98515fe128b162f507e4dcfc (patch) | |
tree | 7db2a37a14b22ab7cf93525ff03ea8d421e1780a /add_mesh_ant_landscape.py | |
parent | 8c5206e4286a3cb63ebecf4ceef15b76276107e1 (diff) |
update for api changes
Diffstat (limited to 'add_mesh_ant_landscape.py')
-rw-r--r-- | add_mesh_ant_landscape.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/add_mesh_ant_landscape.py b/add_mesh_ant_landscape.py index b720a626..bbb9d293 100644 --- a/add_mesh_ant_landscape.py +++ b/add_mesh_ant_landscape.py @@ -669,8 +669,8 @@ class landscape_add(bpy.types.Operator): # Execute def execute(self, context): # turn off undo - undo = bpy.context.user_preferences.edit.global_undo - bpy.context.user_preferences.edit.global_undo = False + undo = bpy.context.user_preferences.edit.use_global_undo + bpy.context.user_preferences.edit.use_global_undo = False # deselect all objects bpy.ops.object.select_all(action='DESELECT') @@ -734,7 +734,7 @@ class landscape_add(bpy.types.Operator): obj = create_mesh_object(context, verts, [], faces, "Landscape", edit, self.align_matrix) # restore pre operator undo state - bpy.context.user_preferences.edit.global_undo = undo + bpy.context.user_preferences.edit.use_global_undo = undo return {'FINISHED'} def invoke(self, context, event): |