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 /ui_translate | |
parent | 04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff) |
Rename user_preferences -> preferences
Diffstat (limited to 'ui_translate')
-rw-r--r-- | ui_translate/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui_translate/__init__.py b/ui_translate/__init__.py index 4029bae1..baab2afa 100644 --- a/ui_translate/__init__.py +++ b/ui_translate/__init__.py @@ -62,8 +62,8 @@ def register(): # Init addon's preferences (unfortunately, as we are using an external storage for the properties, # the load/save user preferences process has no effect on them :( ). - if __name__ in bpy.context.user_preferences.addons: - pref = bpy.context.user_preferences.addons[__name__].preferences + if __name__ in bpy.context.preferences.addons: + pref = bpy.context.preferences.addons[__name__].preferences import os if os.path.isfile(pref.persistent_data_path): pref._settings.load(pref.persistent_data_path, reset=True) |