[Bf-blender-cvs] [8d2309f94f4] blender2.8: 3D View: make navigation buttons smaller

Campbell Barton noreply at git.blender.org
Wed Jun 13 21:06:16 CEST 2018


Commit: 8d2309f94f4610eb3d513c31d967d0a5b63ef6ff
Author: Campbell Barton
Date:   Wed Jun 13 21:00:05 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8d2309f94f4610eb3d513c31d967d0a5b63ef6ff

3D View: make navigation buttons smaller

Keep orbit large, other buttons are now closer to other icons buttons.

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

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

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

diff --git a/source/blender/editors/space_view3d/view3d_manipulator_navigate.c b/source/blender/editors/space_view3d/view3d_manipulator_navigate.c
index 1f653941443..22b7af48de6 100644
--- a/source/blender/editors/space_view3d/view3d_manipulator_navigate.c
+++ b/source/blender/editors/space_view3d/view3d_manipulator_navigate.c
@@ -55,9 +55,9 @@
 /* Size of main icon. */
 #define MANIPULATOR_SIZE 64
 /* Factor for size of smaller button. */
-#define MANIPULATOR_MINI_FAC 0.5f
+#define MANIPULATOR_MINI_FAC 0.35f
 /* How much mini buttons offset from the primary. */
-#define MANIPULATOR_MINI_OFFSET_FAC 0.6666f
+#define MANIPULATOR_MINI_OFFSET_FAC 0.42f
 
 
 enum {
@@ -309,8 +309,8 @@ static void WIDGETGROUP_navigate_draw_prepare(const bContext *C, wmManipulatorGr
 		rect_visible.ymax - icon_offset,
 	};
 	const float co[2] = {
-		rect_visible.xmax - ((show_rotate || show_fixed_offset) ? (icon_offset * 2.2f) : (icon_offset_mini * 0.75f)),
-		rect_visible.ymax - icon_offset_mini * 0.66f,
+		rect_visible.xmax - ((show_rotate || show_fixed_offset) ? (icon_offset * 2.0f) : (icon_offset_mini * 0.75f)),
+		rect_visible.ymax - icon_offset_mini * 0.75f,
 	};
 
 	wmManipulator *mpr;



More information about the Bf-blender-cvs mailing list