From 866c2c12089e4d1b8f0aaca47c4ab9669a24ece7 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Mon, 22 Jun 2020 15:09:36 +1000 Subject: [PATCH] Cleanup: camera_turnaround remove unnecessary lookup --- camera_turnaround.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camera_turnaround.py b/camera_turnaround.py index e80dc6384..8d0fa4171 100644 --- a/camera_turnaround.py +++ b/camera_turnaround.py @@ -163,7 +163,7 @@ class CAMERATURN_OT_RunAction(Operator): bpy.ops.object.constraint_add(type='TRACK_TO') bpy.context.object.constraints[-1].track_axis = 'TRACK_NEGATIVE_Z' bpy.context.object.constraints[-1].up_axis = 'UP_Y' - bpy.context.object.constraints[-1].target = bpy.data.objects[myempty.name] + bpy.context.object.constraints[-1].target = myempty # back previous configuration context.preferences.edit.keyframe_new_interpolation_type = savedinterpolation -- GitLab