[Bf-blender-cvs] [e77ecfa8cbb] master: UI: tweak 3D view space between navigation gizmo & buttons

Campbell Barton noreply at git.blender.org
Thu Sep 5 22:22:13 CEST 2019


Commit: e77ecfa8cbbd59f3e60d27aa8d6a9465d4be734c
Author: Campbell Barton
Date:   Fri Sep 6 06:19:45 2019 +1000
Branches: master
https://developer.blender.org/rBe77ecfa8cbbd59f3e60d27aa8d6a9465d4be734c

UI: tweak 3D view space between navigation gizmo & buttons

Align the lower side of the navigation gizmo with the top of the icons.

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

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 b60ddea5322..ec7d1fc85f1 100644
--- a/source/blender/editors/space_view3d/view3d_gizmo_navigate.c
+++ b/source/blender/editors/space_view3d/view3d_gizmo_navigate.c
@@ -274,7 +274,7 @@ static void WIDGETGROUP_navigate_draw_prepare(const bContext *C, wmGizmoGroup *g
   float icon_offset_from_axis = 0.0f;
   switch ((eUserpref_MiniAxisType)U.mini_axis_type) {
     case USER_MINI_AXIS_TYPE_GIZMO:
-      icon_offset_from_axis = icon_offset * 2.0f;
+      icon_offset_from_axis = icon_offset * 2.1f;
       break;
     case USER_MINI_AXIS_TYPE_MINIMAL:
       icon_offset_from_axis = (UI_UNIT_X * 2.5) + ((U.rvisize * U.pixelsize * 2.0f));



More information about the Bf-blender-cvs mailing list