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
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/modules/bl_app_template_utils.py')
-rw-r--r--release/scripts/modules/bl_app_template_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_app_template_utils.py b/release/scripts/modules/bl_app_template_utils.py
index 66ed7327b31..c00ac6a50b1 100644
--- a/release/scripts/modules/bl_app_template_utils.py
+++ b/release/scripts/modules/bl_app_template_utils.py
@@ -33,7 +33,7 @@ __all__ = (
import bpy as _bpy
-# Normally matches 'user_preferences.app_template_id',
+# Normally matches 'preferences.app_template_id',
# but loading new preferences will get us out of sync.
_app_template = {
"id": "",
@@ -184,7 +184,7 @@ def reset(*, reload_scripts=False):
"""
Sets default state.
"""
- template_id = _bpy.context.user_preferences.app_template
+ template_id = _bpy.context.preferences.app_template
if _bpy.app.debug_python:
print("bl_app_template_utils.reset('%s')" % template_id)