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 /uv_magic_uv
parent04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff)
Rename user_preferences -> preferences
Diffstat (limited to 'uv_magic_uv')
-rw-r--r--uv_magic_uv/addon_updater_ops.py12
-rw-r--r--uv_magic_uv/impl/move_uv_impl.py2
-rw-r--r--uv_magic_uv/legacy/op/texture_projection.py2
-rw-r--r--uv_magic_uv/legacy/op/uv_bounding_box.py4
-rw-r--r--uv_magic_uv/legacy/op/uv_inspection.py2
-rw-r--r--uv_magic_uv/legacy/op/uv_sculpt.py2
6 files changed, 12 insertions, 12 deletions
diff --git a/uv_magic_uv/addon_updater_ops.py b/uv_magic_uv/addon_updater_ops.py
index 418334ad..5f88b331 100644
--- a/uv_magic_uv/addon_updater_ops.py
+++ b/uv_magic_uv/addon_updater_ops.py
@@ -181,7 +181,7 @@ class addon_updater_check_now(bpy.types.Operator):
return {'CANCELLED'}
# apply the UI settings
- settings = context.user_preferences.addons[__package__].preferences
+ settings = context.preferences.addons[__package__].preferences
updater.set_check_interval(enable=settings.auto_check_update,
months=settings.updater_intrval_months,
days=settings.updater_intrval_days,
@@ -670,7 +670,7 @@ def check_for_update_background():
return
# apply the UI settings
- addon_prefs = bpy.context.user_preferences.addons.get(__package__, None)
+ addon_prefs = bpy.context.preferences.addons.get(__package__, None)
if not addon_prefs:
return
settings = addon_prefs.preferences
@@ -701,7 +701,7 @@ def check_for_update_nonthreaded(self, context):
# only check if it's ready, ie after the time interval specified
# should be the async wrapper call here
- settings = context.user_preferences.addons[__package__].preferences
+ settings = context.preferences.addons[__package__].preferences
updater.set_check_interval(enable=settings.auto_check_update,
months=settings.updater_intrval_months,
days=settings.updater_intrval_days,
@@ -778,7 +778,7 @@ def update_notice_box_ui(self, context):
if updater.update_ready != True: return
- settings = context.user_preferences.addons[__package__].preferences
+ settings = context.preferences.addons[__package__].preferences
layout = self.layout
box = layout.box()
col = box.column(align=True)
@@ -818,7 +818,7 @@ def update_settings_ui(self, context, element=None):
box.label(updater.error_msg)
return
- settings = context.user_preferences.addons[__package__].preferences
+ settings = context.preferences.addons[__package__].preferences
# auto-update settings
box.label("Updater Settings")
@@ -975,7 +975,7 @@ def update_settings_ui_condensed(self, context, element=None):
row.label(updater.error_msg)
return
- settings = context.user_preferences.addons[__package__].preferences
+ settings = context.preferences.addons[__package__].preferences
# special case to tell user to restart blender, if set that way
if updater.auto_reload_post_update == False:
diff --git a/uv_magic_uv/impl/move_uv_impl.py b/uv_magic_uv/impl/move_uv_impl.py
index ce507fba..4340e577 100644
--- a/uv_magic_uv/impl/move_uv_impl.py
+++ b/uv_magic_uv/impl/move_uv_impl.py
@@ -132,7 +132,7 @@ class MoveUVImpl():
bmesh.update_edit_mesh(obj.data)
# check mouse preference
- if context.user_preferences.inputs.select_mouse == 'RIGHT':
+ if context.preferences.inputs.select_mouse == 'RIGHT':
confirm_btn = 'LEFTMOUSE'
cancel_btn = 'RIGHTMOUSE'
else:
diff --git a/uv_magic_uv/legacy/op/texture_projection.py b/uv_magic_uv/legacy/op/texture_projection.py
index 58f69c9d..ffcd0baf 100644
--- a/uv_magic_uv/legacy/op/texture_projection.py
+++ b/uv_magic_uv/legacy/op/texture_projection.py
@@ -63,7 +63,7 @@ def get_canvas(context, magnitude):
Get canvas to be renderred texture
"""
sc = context.scene
- prefs = context.user_preferences.addons["uv_magic_uv"].preferences
+ prefs = context.preferences.addons["uv_magic_uv"].preferences
region_w = context.region.width
region_h = context.region.height
diff --git a/uv_magic_uv/legacy/op/uv_bounding_box.py b/uv_magic_uv/legacy/op/uv_bounding_box.py
index 47c27e41..0c283f7f 100644
--- a/uv_magic_uv/legacy/op/uv_bounding_box.py
+++ b/uv_magic_uv/legacy/op/uv_bounding_box.py
@@ -428,7 +428,7 @@ class StateNone(StateBase):
"""
Update state
"""
- prefs = context.user_preferences.addons["uv_magic_uv"].preferences
+ prefs = context.preferences.addons["uv_magic_uv"].preferences
cp_react_size = prefs.uv_bounding_box_cp_react_size
is_uscaling = context.scene.muv_uv_bounding_box_uniform_scaling
if (event.type == 'LEFTMOUSE') and (event.value == 'PRESS'):
@@ -660,7 +660,7 @@ class MUV_OT_UVBoundingBox(bpy.types.Operator):
"""
Draw control point
"""
- prefs = context.user_preferences.addons["uv_magic_uv"].preferences
+ prefs = context.preferences.addons["uv_magic_uv"].preferences
cp_size = prefs.uv_bounding_box_cp_size
offset = cp_size / 2
verts = [
diff --git a/uv_magic_uv/legacy/op/uv_inspection.py b/uv_magic_uv/legacy/op/uv_inspection.py
index 57d42468..a13c1a03 100644
--- a/uv_magic_uv/legacy/op/uv_inspection.py
+++ b/uv_magic_uv/legacy/op/uv_inspection.py
@@ -169,7 +169,7 @@ class MUV_OT_UVInspection_Render(bpy.types.Operator):
def draw(_, context):
sc = context.scene
props = sc.muv_props.uv_inspection
- prefs = context.user_preferences.addons["uv_magic_uv"].preferences
+ prefs = context.preferences.addons["uv_magic_uv"].preferences
if not MUV_OT_UVInspection_Render.is_running(context):
return
diff --git a/uv_magic_uv/legacy/op/uv_sculpt.py b/uv_magic_uv/legacy/op/uv_sculpt.py
index 3754a759..556e0a4e 100644
--- a/uv_magic_uv/legacy/op/uv_sculpt.py
+++ b/uv_magic_uv/legacy/op/uv_sculpt.py
@@ -205,7 +205,7 @@ class MUV_OT_UVSculpt(bpy.types.Operator):
@classmethod
def draw_brush(cls, obj, context):
sc = context.scene
- prefs = context.user_preferences.addons["uv_magic_uv"].preferences
+ prefs = context.preferences.addons["uv_magic_uv"].preferences
num_segment = 180
theta = 2 * pi / num_segment