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>2020-06-22 08:09:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-06-22 08:09:36 +0300
commit866c2c12089e4d1b8f0aaca47c4ab9669a24ece7 (patch)
tree00adca13828e3c8349ad6ddab4c0feb51f8f3303 /camera_turnaround.py
parent793637384cf175404f64f58c67e0ab0997709571 (diff)
Cleanup: camera_turnaround remove unnecessary lookup
Diffstat (limited to 'camera_turnaround.py')
-rw-r--r--camera_turnaround.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/camera_turnaround.py b/camera_turnaround.py
index e80dc638..8d0fa417 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