diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-21 04:56:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-21 04:56:42 +0300 |
commit | 0457976a872000993202763abe7503c76b461122 (patch) | |
tree | a4998fbbb768c43eb00b55ba311d497fd74eadcd /ant_landscape | |
parent | 04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff) |
Rename user_preferences -> preferences
Diffstat (limited to 'ant_landscape')
-rw-r--r-- | ant_landscape/add_mesh_ant_landscape.py | 6 | ||||
-rw-r--r-- | ant_landscape/ant_functions.py | 12 | ||||
-rw-r--r-- | ant_landscape/mesh_ant_displace.py | 6 |
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'} |