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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user