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 /node_wrangler.py
parent04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff)
Rename user_preferences -> preferences
Diffstat (limited to 'node_wrangler.py')
-rw-r--r--node_wrangler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/node_wrangler.py b/node_wrangler.py
index d3fd8448..b3d04c5e 100644
--- a/node_wrangler.py
+++ b/node_wrangler.py
@@ -614,7 +614,7 @@ def force_update(context):
def dpifac():
- prefs = bpy.context.user_preferences.system
+ prefs = bpy.context.preferences.system
return prefs.dpi * prefs.pixel_size / 72
@@ -2042,7 +2042,7 @@ class NWMergeNodes(Operator, NWBase):
)
def execute(self, context):
- settings = context.user_preferences.addons[__name__].preferences
+ settings = context.preferences.addons[__name__].preferences
merge_hide = settings.merge_hide
merge_position = settings.merge_position # 'center' or 'bottom'
@@ -2717,7 +2717,7 @@ class NWAddPrincipledSetup(Operator, NWBase, ImportHelper):
# Filter textures names for texturetypes in filenames
# [Socket Name, [abbreviations and keyword list], Filename placeholder]
- tags = context.user_preferences.addons[__name__].preferences.principled_tags
+ tags = context.preferences.addons[__name__].preferences.principled_tags
normal_abbr = tags.normal.split(' ')
bump_abbr = tags.bump.split(' ')
gloss_abbr = tags.gloss.split(' ')