Skip to content
Snippets Groups Projects
Commit 084eec36 authored by Jacques Lucke's avatar Jacques Lucke
Browse files

Fix T76900: Tri-lighting addon broken when there was no camera

Reviewers: lichtwerk

Differential Revision: https://developer.blender.org/D7861
parent 36cc6368
Branches
Tags
No related merge requests found
......@@ -142,7 +142,8 @@ class OBJECT_OT_TriLighting(Operator):
scene.camera = cam_obj
bpy.ops.view3d.camera_to_view()
camera = cam_obj
bpy.ops.view3d.view_axis(type='TOP')
# Leave camera view again, otherwise redo does not work correctly.
bpy.ops.view3d.view_camera()
obj = bpy.context.view_layer.objects.active
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment