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:
Diffstat (limited to 'ant_landscape/mesh_ant_displace.py')
-rw-r--r--ant_landscape/mesh_ant_displace.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ant_landscape/mesh_ant_displace.py b/ant_landscape/mesh_ant_displace.py
index 884c72a4..a5c57d75 100644
--- a/ant_landscape/mesh_ant_displace.py
+++ b/ant_landscape/mesh_ant_displace.py
@@ -616,8 +616,8 @@ class AntMeshDisplace(bpy.types.Operator):
return {'PASS_THROUGH'}
# turn off undo
- undo = bpy.context.user_preferences.edit.use_global_undo
- bpy.context.user_preferences.edit.use_global_undo = False
+ undo = bpy.context.preferences.edit.use_global_undo
+ bpy.context.preferences.edit.use_global_undo = False
ob = context.object
@@ -745,6 +745,6 @@ class AntMeshDisplace(bpy.types.Operator):
self.refresh = False
# restore pre operator undo state
- context.user_preferences.edit.use_global_undo = undo
+ context.preferences.edit.use_global_undo = undo
return {'FINISHED'}