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 /camera_turnaround.py
parent04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff)
Rename user_preferences -> preferences
Diffstat (limited to 'camera_turnaround.py')
-rw-r--r--camera_turnaround.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/camera_turnaround.py b/camera_turnaround.py
index 547c2834..78fdab60 100644
--- a/camera_turnaround.py
+++ b/camera_turnaround.py
@@ -91,9 +91,9 @@ class RunAction(Operator):
myempty.select = True
context.scene.objects.active = myempty
# save current configuration
- savedinterpolation = context.user_preferences.edit.keyframe_new_interpolation_type
+ savedinterpolation = context.preferences.edit.keyframe_new_interpolation_type
# change interpolation mode
- context.user_preferences.edit.keyframe_new_interpolation_type = 'LINEAR'
+ context.preferences.edit.keyframe_new_interpolation_type = 'LINEAR'
# create first frame
myempty.rotation_euler = (0, 0, 0)
myempty.empty_display_size = 0.1
@@ -165,7 +165,7 @@ class RunAction(Operator):
bpy.context.object.constraints[-1].target = bpy.data.objects[myempty.name]
# back previous configuration
- context.user_preferences.edit.keyframe_new_interpolation_type = savedinterpolation
+ context.preferences.edit.keyframe_new_interpolation_type = savedinterpolation
bpy.context.scene.cursor_location = savedcursor
# -------------------------