Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-21 04:47:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-21 04:55:02 +0300
commit63fcbfc3a7325d79b9e916457d64c302ddfeadfa (patch)
treef194e16441c06af61a2c34ef6dc119ac2c98f9a3 /doc
parent9dde3e42a7c5bc5f7896fd30e2b3a5859d6857bf (diff)
RNA: naming, user-preferences -> preferences
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/examples/bpy.types.AddonPreferences.1.py4
-rw-r--r--doc/python_api/sphinx_doc_gen.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/python_api/examples/bpy.types.AddonPreferences.1.py b/doc/python_api/examples/bpy.types.AddonPreferences.1.py
index e6c720e0fad..fdc073b3e2f 100644
--- a/doc/python_api/examples/bpy.types.AddonPreferences.1.py
+++ b/doc/python_api/examples/bpy.types.AddonPreferences.1.py
@@ -50,8 +50,8 @@ class OBJECT_OT_addon_prefs_example(Operator):
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):
- user_preferences = context.user_preferences
- addon_prefs = user_preferences.addons[__name__].preferences
+ preferences = context.preferences
+ addon_prefs = preferences.addons[__name__].preferences
info = ("Path: %s, Number: %d, Boolean %r" %
(addon_prefs.filepath, addon_prefs.number, addon_prefs.boolean))
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index eda0ab637fa..6200a88d2b1 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -359,7 +359,7 @@ INFO_DOCS = (
# only support for properties atm.
RNA_BLACKLIST = {
# XXX messes up PDF!, really a bug but for now just workaround.
- "UserPreferencesSystem": {"language", }
+ "PreferencesSystem": {"language", }
}
MODULE_GROUPING = {