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>2018-12-21 04:56:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-21 04:56:42 +0300
commit0457976a872000993202763abe7503c76b461122 (patch)
treea4998fbbb768c43eb00b55ba311d497fd74eadcd /ant_landscape
parent04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff)
Rename user_preferences -> preferences
Diffstat (limited to 'ant_landscape')
-rw-r--r--ant_landscape/add_mesh_ant_landscape.py6
-rw-r--r--ant_landscape/ant_functions.py12
-rw-r--r--ant_landscape/mesh_ant_displace.py6
3 files changed, 12 insertions, 12 deletions
diff --git a/ant_landscape/add_mesh_ant_landscape.py b/ant_landscape/add_mesh_ant_landscape.py
index f103a6c0..52afed75 100644
--- a/ant_landscape/add_mesh_ant_landscape.py
+++ b/ant_landscape/add_mesh_ant_landscape.py
@@ -612,8 +612,8 @@ class AntAddLandscape(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
# deselect all objects when in object mode
if bpy.ops.object.select_all.poll():
@@ -796,6 +796,6 @@ class AntAddLandscape(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'}
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'}
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'}