[Bf-blender-cvs] [d9fb06f8769] master: Gizmo: display axis in camera view

Campbell Barton noreply at git.blender.org
Tue Apr 30 06:53:27 CEST 2019


Commit: d9fb06f87694a45dc6656a32b72b85ba8ade3a34
Author: Campbell Barton
Date:   Tue Apr 30 10:51:14 2019 +1000
Branches: master
https://developer.blender.org/rBd9fb06f87694a45dc6656a32b72b85ba8ade3a34

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.

===================================================================

M	source/blender/editors/space_view3d/view3d_gizmo_navigate.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list