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/ant_functions.py | |
parent | 04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff) |
Rename user_preferences -> preferences
Diffstat (limited to 'ant_landscape/ant_functions.py')
-rw-r--r-- | ant_landscape/ant_functions.py | 12 |
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'} |