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:
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