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 /archipack/archipack_rendering.py | |
parent | 04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff) |
Rename user_preferences -> preferences
Diffstat (limited to 'archipack/archipack_rendering.py')
-rw-r--r-- | archipack/archipack_rendering.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archipack/archipack_rendering.py b/archipack/archipack_rendering.py index 533afffc..82ef9a18 100644 --- a/archipack/archipack_rendering.py +++ b/archipack/archipack_rendering.py @@ -56,7 +56,7 @@ class ARCHIPACK_OT_render_thumbs(Operator): def background_render(self, context, cls, preset): generator = path.dirname(path.realpath(__file__)) + path.sep + "archipack_thumbs.py" addon_name = __name__.split('.')[0] - matlib_path = context.user_preferences.addons[addon_name].preferences.matlib_path + matlib_path = context.preferences.addons[addon_name].preferences.matlib_path # Run external instance of blender like the original thumbnail generator. cmd = [ bpy.app.binary_path, @@ -174,7 +174,7 @@ class ARCHIPACK_OT_render_thumbs(Operator): def invoke(self, context, event): addon_name = __name__.split('.')[0] - matlib_path = context.user_preferences.addons[addon_name].preferences.matlib_path + matlib_path = context.preferences.addons[addon_name].preferences.matlib_path if matlib_path == '': self.report({'WARNING'}, "You should setup a default material library path in addon preferences") |