Gizmo: display axis in camera view

User request to see axis even when in camera view,
it's also useful when the camera is locked to the view.
This commit is contained in:
2019-04-30 10:51:14 +10:00
parent 0470818411
commit d9fb06f876

View File

@@ -259,8 +259,7 @@ static void WIDGETGROUP_navigate_draw_prepare(const bContext *C, wmGizmoGroup *g
navgroup->state.rv3d.is_camera = (rv3d->persp == RV3D_CAMOB);
navgroup->state.rv3d.viewlock = rv3d->viewlock;
const bool show_rotate = (((rv3d->viewlock & RV3D_LOCKED) == 0) &&
(navgroup->state.rv3d.is_camera == false));
const bool show_rotate = (rv3d->viewlock & RV3D_LOCKED) == 0;
const bool show_fixed_offset = navgroup->state.rv3d.is_camera;
const float icon_size = GIZMO_SIZE;
const float icon_offset = (icon_size * 0.52f) * GIZMO_OFFSET_FAC * UI_DPI_FAC;