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_looptools.py | |
parent | 04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff) |
Rename user_preferences -> preferences
Diffstat (limited to 'mesh_looptools.py')
-rw-r--r-- | mesh_looptools.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesh_looptools.py b/mesh_looptools.py index 25c63f9e..17425de4 100644 --- a/mesh_looptools.py +++ b/mesh_looptools.py @@ -745,8 +745,8 @@ def get_parallel_loops(bm_mod, loops): # gather initial data def initialise(): - global_undo = bpy.context.user_preferences.edit.use_global_undo - bpy.context.user_preferences.edit.use_global_undo = False + global_undo = bpy.context.preferences.edit.use_global_undo + bpy.context.preferences.edit.use_global_undo = False object = bpy.context.active_object if 'MIRROR' in [mod.type for mod in object.modifiers if mod.show_viewport]: # ensure that selection is synced for the derived mesh @@ -834,7 +834,7 @@ def terminate(global_undo): if obj.mode == 'EDIT': bmesh.update_edit_mesh(obj.data, loop_triangles=True, destructive=True) - bpy.context.user_preferences.edit.use_global_undo = global_undo + bpy.context.preferences.edit.use_global_undo = global_undo # ######################################## @@ -5067,7 +5067,7 @@ def update_panel(self, context): bpy.utils.unregister_class(panel) for panel in panels: - panel.bl_category = context.user_preferences.addons[__name__].preferences.category + panel.bl_category = context.preferences.addons[__name__].preferences.category bpy.utils.register_class(panel) except Exception as e: |