Fix #1816. Fix bug where cameras weren't allowed to be optional in BCF 2.1.

This commit is contained in:
Dion Moult
2021-12-09 13:51:55 +11:00
parent 763a38bc9c
commit 78a36ab429
@@ -842,6 +842,8 @@ class ActivateBcfViewpoint(bpy.types.Operator):
obj.data.angle = 2 * atan(
(0.5 * cam_height) / (0.5 * cam_width / tan(radians(camera.field_of_view) / 2))
)
else:
return
z_axis = Vector(
(-camera.camera_direction.x, -camera.camera_direction.y, -camera.camera_direction.z)