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>2019-03-01 04:49:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-01 04:51:10 +0300
commit9999dada60a64eb27b37c4d711f4c3979888253e (patch)
treeb325eb58ec754c883683696683933fc9d368eb0d /camera_turnaround.py
parentdd0dffef42ae64d1bf16e879e3f1470ce3bf5cad (diff)
Update for API change: scene.cursor_location -> scene.cursor.location
Note that some scripts still used the 3D view cursor which has been removed for a while.
Diffstat (limited to 'camera_turnaround.py')
-rw-r--r--camera_turnaround.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/camera_turnaround.py b/camera_turnaround.py
index 0a30d922..e5581b35 100644
--- a/camera_turnaround.py
+++ b/camera_turnaround.py
@@ -59,7 +59,7 @@ class CAMERATURN_OT_RunAction(Operator):
turn_camera = scene.turn_camera
selectobject = context.active_object
camera = context.scene.camera
- savedcursor = bpy.context.scene.cursor_location.copy() # cursor position
+ savedcursor = bpy.context.scene.cursor.location.copy() # cursor position
savedframe = scene.frame_current
if turn_camera.use_cursor is False:
bpy.ops.view3d.snap_cursor_to_selected()
@@ -166,7 +166,7 @@ class CAMERATURN_OT_RunAction(Operator):
# back previous configuration
context.preferences.edit.keyframe_new_interpolation_type = savedinterpolation
- bpy.context.scene.cursor_location = savedcursor
+ bpy.context.scene.cursor.location = savedcursor
# -------------------------
# Back to old selection