Fix for using non camera objects as a camera having zero area view-frame
[blender.git] / source / blender / blenkernel / intern / camera.c
index 3290f0eae8e9c26ed8de5739bb3148972e9300d5..1e47dc3ab53a1c7ece5fa23cff1720697c62f311 100644 (file)
@@ -198,6 +198,10 @@ void BKE_camera_params_init(CameraParams *params)
        params->sensor_fit = CAMERA_SENSOR_FIT_AUTO;
 
        params->zoom = 1.0f;
+
+       /* fallback for non camera objects */
+       params->clipsta = 0.1f;
+       params->clipsta = 100.0f;
 }
 
 void BKE_camera_params_from_object(CameraParams *params, Object *ob)