diff options
Diffstat (limited to 'scene')
-rw-r--r-- | scene/3d/camera.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/camera.cpp b/scene/3d/camera.cpp index a1794d34a7..bbc81afe3d 100644 --- a/scene/3d/camera.cpp +++ b/scene/3d/camera.cpp @@ -583,12 +583,14 @@ Camera::Projection Camera::get_projection() const { } void Camera::set_fov(float p_fov) { + ERR_FAIL_COND(p_fov < 1 || p_fov > 179); fov = p_fov; _update_camera_mode(); _change_notify("fov"); } void Camera::set_size(float p_size) { + ERR_FAIL_COND(p_size < 0.1 || p_size > 16384); size = p_size; _update_camera_mode(); _change_notify("size"); |