Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-11-24 12:59:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-11-24 13:01:04 +0300
commit543945b9e5edcb1005ebee3b35f6fab17721cece (patch)
tree1b13419e3d776831252ec49c9ca8f4c3e580e10f /source
parent87c821ff26be9f3049993088042dc74b0c141003 (diff)
Correct sensor fit use
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_view3d/view3d_manipulator_camera.c4
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);
}