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:
authorJacques Lucke <mail@jlucke.com>2020-06-03 11:54:49 +0300
committerJacques Lucke <mail@jlucke.com>2020-06-03 11:54:49 +0300
commit084eec36977c9a084aa020031f4a1aa0f0352170 (patch)
tree842aea62a5ea88d7466921e958c8ac3bd9b648b1 /lighting_tri_lights.py
parent36cc6368b7abee3bc1a47759107797117eb7d539 (diff)
Fix T76900: Tri-lighting addon broken when there was no camera
Reviewers: lichtwerk Differential Revision: https://developer.blender.org/D7861
Diffstat (limited to 'lighting_tri_lights.py')
-rw-r--r--lighting_tri_lights.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lighting_tri_lights.py b/lighting_tri_lights.py
index a5478974..f86972ed 100644
--- a/lighting_tri_lights.py
+++ b/lighting_tri_lights.py
@@ -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