Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-08-16 05:47:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-16 05:47:24 +0300
commit70bcb0c01c185dde6b73358561eb175bc5c3650d (patch)
treebf74f3fd5cf0cfeb2b44cc2d7039e6e58fc1c51e /source/blender/editors/space_view3d/view3d_gizmo_navigate.c
parent9a72342c6e1bed83e730280f8a7811936058cd98 (diff)
3D View: tweaks to navigation gizmo
- Only show axis backdrop when hovering. - Move closer to the screen corner.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_gizmo_navigate.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_gizmo_navigate.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_navigate.c b/source/blender/editors/space_view3d/view3d_gizmo_navigate.c
index 5778f85a99c..a234aa03482 100644
--- a/source/blender/editors/space_view3d/view3d_gizmo_navigate.c
+++ b/source/blender/editors/space_view3d/view3d_gizmo_navigate.c
@@ -51,7 +51,7 @@
* \{ */
/* Offset from screen edge. */
-#define GIZMO_OFFSET_FAC 1.5f
+#define GIZMO_OFFSET_FAC 1.2f
/* Size of main icon. */
#define GIZMO_SIZE 80
/* Factor for size of smaller button. */
@@ -204,8 +204,16 @@ static void WIDGETGROUP_navigate_setup(const bContext *UNUSED(C), wmGizmoGroup *
navgroup->gz_array[i] = WM_gizmo_new(info->gizmo, gzgroup, NULL);
wmGizmo *gz = navgroup->gz_array[i];
gz->flag |= WM_GIZMO_GRAB_CURSOR | WM_GIZMO_DRAW_MODAL;
- gz->color[3] = 0.2f;
- gz->color_hi[3] = 0.4f;
+
+ if (i == MPR_ROTATE) {
+ gz->color[3] = 0.0f;
+ gz->color_hi[3] = 0.1f;
+ }
+ else {
+ gz->color[3] = 0.2f;
+ gz->color_hi[3] = 0.4f;
+ }
+
/* may be overwritten later */
gz->scale_basis = (GIZMO_SIZE * GIZMO_MINI_FAC) / 2;