From 0457976a872000993202763abe7503c76b461122 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 21 Dec 2018 12:56:42 +1100 Subject: Rename user_preferences -> preferences --- ant_landscape/add_mesh_ant_landscape.py | 6 +++--- ant_landscape/ant_functions.py | 12 ++++++------ ant_landscape/mesh_ant_displace.py | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'ant_landscape') 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'} -- cgit v1.2.3