diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-30 03:51:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-30 03:51:14 +0300 |
commit | d9fb06f87694a45dc6656a32b72b85ba8ade3a34 (patch) | |
tree | 5c379c5d4cec66afe9b7456929e95509709a1b9e /source/blender | |
parent | 047081841113da73d7a13886218f5a56cfc62de6 (diff) |
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.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_navigate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_navigate.c b/source/blender/editors/space_view3d/view3d_gizmo_navigate.c index f98a87e84a8..5af6fd8b04b 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_navigate.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_navigate.c @@ -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; |