mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Fix #1816. Fix bug where cameras weren't allowed to be optional in BCF 2.1.
This commit is contained in:
@@ -842,6 +842,8 @@ class ActivateBcfViewpoint(bpy.types.Operator):
|
|||||||
obj.data.angle = 2 * atan(
|
obj.data.angle = 2 * atan(
|
||||||
(0.5 * cam_height) / (0.5 * cam_width / tan(radians(camera.field_of_view) / 2))
|
(0.5 * cam_height) / (0.5 * cam_width / tan(radians(camera.field_of_view) / 2))
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
return
|
||||||
|
|
||||||
z_axis = Vector(
|
z_axis = Vector(
|
||||||
(-camera.camera_direction.x, -camera.camera_direction.y, -camera.camera_direction.z)
|
(-camera.camera_direction.x, -camera.camera_direction.y, -camera.camera_direction.z)
|
||||||
|
|||||||
Reference in New Issue
Block a user