diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-11 05:19:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-11 05:19:44 +0300 |
commit | 53928f479c61cd2aa0996b5ea1b027cb75dc0ab5 (patch) | |
tree | 3e7cebf1b1da92bd23a3488bff12c59295162bdc /source/blender/editors/space_view3d | |
parent | 65b930af39bd3c89a2aed97d238c669d8788a892 (diff) |
Gizmo: update camera ortho-size
This needs to be improved further,
for now it shows in the right location.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_camera.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_camera.c b/source/blender/editors/space_view3d/view3d_gizmo_camera.c index c80a11cbf16..0dcffbbdcb0 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_camera.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_camera.c @@ -221,7 +221,7 @@ static void WIDGETGROUP_camera_refresh(const bContext *C, wmGizmoGroup *gzgroup) ED_gizmo_arrow3d_set_range_fac( widget, is_ortho ? - (ca->drawsize * range) : + ((range / scale_matrix) * ca->drawsize) : (scale_matrix * range / /* Half sensor, intentionally use sensor from camera and not calculated above. */ (0.5f * ((sensor_fit == CAMERA_SENSOR_FIT_HOR) ? ca->sensor_x : ca->sensor_y)))); |