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 /materials_library_vx | |
parent | 04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff) |
Rename user_preferences -> preferences
Diffstat (limited to 'materials_library_vx')
-rw-r--r-- | materials_library_vx/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/materials_library_vx/__init__.py b/materials_library_vx/__init__.py index dd89127b..8aa8993f 100644 --- a/materials_library_vx/__init__.py +++ b/materials_library_vx/__init__.py @@ -264,7 +264,7 @@ class Library(): def get_libraries(): libs = [Library(matlib_path, f) for f in os.listdir(matlib_path) if f[-5::] == "blend"] try: - user_path = bpy.context.user_preferences.addons[__name__].preferences.matlib_path + user_path = bpy.context.preferences.addons[__name__].preferences.matlib_path if user_path: if os.path.exists(user_path): libs.extend([Library(user_path, f) for f in os.listdir(user_path) if f[-5::] == "blend"]) @@ -1093,7 +1093,7 @@ def clean_materials(): bin = bpy.app.binary_path mats = list_materials() -bpy.context.user_preferences.filepaths.save_version = 0 +bpy.context.preferences.filepaths.save_version = 0 for mat in mats: clean_materials() matpath = os.path.join("{1}", mat + ".blend") |