diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-11-28 09:29:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-11-28 09:36:37 +0300 |
commit | 96ed2b0ce05ae46d81c38476133768d8b07fdc71 (patch) | |
tree | c1490c819abcadd4ee20dce2db22d93e514533a8 /source/blender/blenkernel/intern | |
parent | 841f3e49725685b64f54c8dff6f29dab7bc223ee (diff) |
Remove sensor-size to int conversion
Currently harmless since the value is always set at its default (32).
Even so, it's confusing since its used with floats after.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/camera.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/camera.c b/source/blender/blenkernel/intern/camera.c index 85ce399b770..30f17582bf5 100644 --- a/source/blender/blenkernel/intern/camera.c +++ b/source/blender/blenkernel/intern/camera.c @@ -252,7 +252,7 @@ void BKE_camera_params_from_view3d(CameraParams *params, const View3D *v3d, cons } else if (rv3d->persp == RV3D_ORTHO) { /* orthographic view */ - int sensor_size = BKE_camera_sensor_size(params->sensor_fit, params->sensor_x, params->sensor_y); + float sensor_size = BKE_camera_sensor_size(params->sensor_fit, params->sensor_x, params->sensor_y); params->clipend *= 0.5f; // otherwise too extreme low zbuffer quality params->clipsta = -params->clipend; |