Skip to content
Snippets Groups Projects
Commit 866c2c12 authored by Campbell Barton's avatar Campbell Barton
Browse files

Cleanup: camera_turnaround remove unnecessary lookup

parent 79363738
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment