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 /mesh_inset
parent04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff)
Rename user_preferences -> preferences
Diffstat (limited to 'mesh_inset')
-rw-r--r--mesh_inset/__init__.py6
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()