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/ant_functions.py')
-rw-r--r--ant_landscape/ant_functions.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/ant_landscape/ant_functions.py b/ant_landscape/ant_functions.py
index ca81ce6d..71dbde72 100644
--- a/ant_landscape/ant_functions.py
+++ b/ant_landscape/ant_functions.py
@@ -142,8 +142,8 @@ class AntLandscapeRefresh(bpy.types.Operator):
def execute(self, context):
# 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
# ant object items
obj = bpy.context.active_object
@@ -178,7 +178,7 @@ class AntLandscapeRefresh(bpy.types.Operator):
pass
# restore pre operator undo state
- context.user_preferences.edit.use_global_undo = undo
+ context.preferences.edit.use_global_undo = undo
return {'FINISHED'}
@@ -202,8 +202,8 @@ class AntLandscapeRegenerate(bpy.types.Operator):
def execute(self, context):
# 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
scene = bpy.context.scene
# ant object items
@@ -329,7 +329,7 @@ class AntLandscapeRegenerate(bpy.types.Operator):
scene.objects.active = new_ob
# restore pre operator undo state
- context.user_preferences.edit.use_global_undo = undo
+ context.preferences.edit.use_global_undo = undo
return {'FINISHED'}