Skip to content

Commit d0df869

Browse files
committed
Merge pull request godotengine#117075 from dalelightning/bugfix/camera-3d-fov-bounds
Change `Camera3D` Vertical FOV to allow decimal values 0-180 exclusive
2 parents 6812bb9 + 28ae953 commit d0df869

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scene/3d/camera_3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ Camera3D::ProjectionType Camera3D::get_projection() const {
735735
}
736736

737737
void Camera3D::set_fov(real_t p_fov) {
738-
ERR_FAIL_COND(p_fov < 1 || p_fov > 179);
738+
ERR_FAIL_COND(p_fov <= CMP_EPSILON || p_fov >= 180.0 - CMP_EPSILON);
739739
fov = p_fov;
740740
_update_camera_mode();
741741
}

0 commit comments

Comments
 (0)