diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-11-24 12:59:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-11-24 13:01:04 +0300 |
commit | 543945b9e5edcb1005ebee3b35f6fab17721cece (patch) | |
tree | 1b13419e3d776831252ec49c9ca8f4c3e580e10f /source | |
parent | 87c821ff26be9f3049993088042dc74b0c141003 (diff) |
Correct sensor fit use
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_manipulator_camera.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_manipulator_camera.c b/source/blender/editors/space_view3d/view3d_manipulator_camera.c index f81705b2c8f..a4d408eedc6 100644 --- a/source/blender/editors/space_view3d/view3d_manipulator_camera.c +++ b/source/blender/editors/space_view3d/view3d_manipulator_camera.c @@ -209,8 +209,8 @@ static void WIDGETGROUP_camera_refresh(const bContext *C, wmManipulatorGroup *mg widget, is_ortho ? (ca->drawsize * range) : (scale_matrix * range / - /* half sensor */ - (0.5f * ((sensor_fit == CAMERA_SENSOR_FIT_VERT) ? ca->sensor_y : ca->sensor_x)))); + /* Half sensor, intentionally use sensor from camera and not calculated above. */ + (0.5f * ((ca->sensor_fit == CAMERA_SENSOR_FIT_HOR) ? ca->sensor_x : ca->sensor_x)))); WM_manipulator_target_property_def_rna_ptr(widget, mpr_prop_type, &camera_ptr, prop, -1); } |