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 /mesh_inset | |
parent | 04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff) |
Rename user_preferences -> preferences
Diffstat (limited to 'mesh_inset')
-rw-r--r-- | mesh_inset/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesh_inset/__init__.py b/mesh_inset/__init__.py index 28fa2131..973b57c4 100644 --- a/mesh_inset/__init__.py +++ b/mesh_inset/__init__.py @@ -110,13 +110,13 @@ class Inset(bpy.types.Operator): return {'FINISHED'} def action(self, context): - save_global_undo = bpy.context.user_preferences.edit.use_global_undo - bpy.context.user_preferences.edit.use_global_undo = False + save_global_undo = bpy.context.preferences.edit.use_global_undo + bpy.context.preferences.edit.use_global_undo = False obj = bpy.context.active_object mesh = obj.data do_inset(mesh, self.inset_amount, self.inset_height, self.region, self.scale == 'PERCENT') - bpy.context.user_preferences.edit.use_global_undo = save_global_undo + bpy.context.preferences.edit.use_global_undo = save_global_undo bpy.ops.object.editmode_toggle() bpy.ops.object.editmode_toggle() |