Gizmo: update camera ortho-size

This needs to be improved further,
for now it shows in the right location.
This commit is contained in:
Campbell Barton 2018-12-11 13:19:44 +11:00
parent 65b930af39
commit 53928f479c
1 changed files with 1 additions and 1 deletions

View File

@ -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))));