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_bsurfaces.py | |
parent | 04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff) |
Rename user_preferences -> preferences
Diffstat (limited to 'mesh_bsurfaces.py')
-rw-r--r-- | mesh_bsurfaces.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py index 53b88d49..c0c1e994 100644 --- a/mesh_bsurfaces.py +++ b/mesh_bsurfaces.py @@ -3037,7 +3037,7 @@ class GPENCIL_OT_SURFSK_add_surface(Operator): def execute(self, context): - bpy.context.user_preferences.edit.use_global_undo = False + bpy.context.preferences.edit.use_global_undo = False if not self.is_fill_faces: bpy.ops.wm.context_set_value(data_path='tool_settings.mesh_select_mode', @@ -3108,17 +3108,17 @@ class GPENCIL_OT_SURFSK_add_surface(Operator): bpy.ops.object.editmode_toggle('INVOKE_REGION_WIN') - bpy.context.user_preferences.edit.use_global_undo = self.initial_global_undo_state + bpy.context.preferences.edit.use_global_undo = self.initial_global_undo_state return{'FINISHED'} def invoke(self, context, event): - self.initial_global_undo_state = bpy.context.user_preferences.edit.use_global_undo + self.initial_global_undo_state = bpy.context.preferences.edit.use_global_undo self.main_object = bpy.context.scene.objects.active self.main_object_selected_verts_count = int(self.main_object.data.total_vert_sel) - bpy.context.user_preferences.edit.use_global_undo = False + bpy.context.preferences.edit.use_global_undo = False bpy.ops.wm.context_set_value(data_path='tool_settings.mesh_select_mode', value='True, False, False') @@ -3333,7 +3333,7 @@ class GPENCIL_OT_SURFSK_add_surface(Operator): self.execute(context) # Set again since "execute()" will turn it again to its initial value - bpy.context.user_preferences.edit.use_global_undo = False + bpy.context.preferences.edit.use_global_undo = False # If "Keep strokes" option is not active, delete original strokes curve object if (not self.stopping_errors and not self.keep_strokes) or self.is_crosshatch: @@ -3354,7 +3354,7 @@ class GPENCIL_OT_SURFSK_add_surface(Operator): if self.strokes_type == "GP_STROKES" and not self.stopping_errors: bpy.ops.gpencil.active_frame_delete('INVOKE_REGION_WIN') - bpy.context.user_preferences.edit.use_global_undo = self.initial_global_undo_state + bpy.context.preferences.edit.use_global_undo = self.initial_global_undo_state if not self.stopping_errors: return {"FINISHED"} @@ -3366,7 +3366,7 @@ class GPENCIL_OT_SURFSK_add_surface(Operator): created_faces_count = self.fill_with_faces(self.main_object) bpy.ops.object.editmode_toggle('INVOKE_REGION_WIN') - bpy.context.user_preferences.edit.use_global_undo = self.initial_global_undo_state + bpy.context.preferences.edit.use_global_undo = self.initial_global_undo_state if created_faces_count == 0: self.report({'WARNING'}, "There aren't any strokes attached to the object") @@ -3374,7 +3374,7 @@ class GPENCIL_OT_SURFSK_add_surface(Operator): else: return {"FINISHED"} - bpy.context.user_preferences.edit.use_global_undo = self.initial_global_undo_state + bpy.context.preferences.edit.use_global_undo = self.initial_global_undo_state if self.strokes_type == "EXTERNAL_NO_CURVE": self.report({'WARNING'}, "The secondary object is not a Curve.") @@ -3858,7 +3858,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: |