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 /render_povray/ui.py
parent04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff)
Rename user_preferences -> preferences
Diffstat (limited to 'render_povray/ui.py')
-rw-r--r--render_povray/ui.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/render_povray/ui.py b/render_povray/ui.py
index 1d5a621f..9691630d 100644
--- a/render_povray/ui.py
+++ b/render_povray/ui.py
@@ -245,12 +245,12 @@ for member in dir(properties_particle): # add all "particle" panels from blende
del properties_particle
def check_add_mesh_extra_objects():
- if "add_mesh_extra_objects" in bpy.context.user_preferences.addons.keys():
+ if "add_mesh_extra_objects" in bpy.context.preferences.addons.keys():
return True
return False
def locate_docpath():
- addon_prefs = bpy.context.user_preferences.addons[__package__].preferences
+ addon_prefs = bpy.context.preferences.addons[__package__].preferences
# Use the system preference if its set.
pov_documents = addon_prefs.docpath_povray
if pov_documents:
@@ -784,7 +784,7 @@ class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel):
def draw_header(self, context):
- prefs = bpy.context.user_preferences.addons[__package__].preferences
+ prefs = bpy.context.preferences.addons[__package__].preferences
scene = context.scene
if prefs.branch_feature_set_povray != 'uberpov' and scene.pov.antialias_method == '2':
self.layout.prop(scene.pov, "antialias_enable", text="", icon='ERROR')
@@ -794,7 +794,7 @@ class RENDER_PT_povray_antialias(RenderButtonsPanel, bpy.types.Panel):
self.layout.prop(scene.pov, "antialias_enable", text="", icon='ALIASED')
def draw(self, context):
- prefs = bpy.context.user_preferences.addons[__package__].preferences
+ prefs = bpy.context.preferences.addons[__package__].preferences
layout = self.layout
scene = context.scene