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>2021-01-25 05:44:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-25 05:44:42 +0300
commit9708aa6341329bac93012de083bfb33c97be5667 (patch)
tree87f26f3fb5b3379155c5b1dad0b279aafd1fc60c /source/blender
parentc5e409b01325fffd793c5a0037712fa37a56bb04 (diff)
Fix view-axis gizmo tool-tip placement
Bounding box calculation ignored the gizmo size preference.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c b/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c
index 5a1b24d18cc..7404778f960 100644
--- a/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c
+++ b/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c
@@ -355,7 +355,7 @@ static int gizmo_axis_cursor_get(wmGizmo *UNUSED(gz))
static void gizmo_axis_bounds(bContext *C, wmGizmo *gz, rcti *r_bounding_box)
{
ScrArea *area = CTX_wm_area(C);
- const float rad = (40.0f * U.dpi_fac);
+ const float rad = WIDGET_RADIUS;
r_bounding_box->xmin = gz->matrix_basis[3][0] + area->totrct.xmin - rad;
r_bounding_box->ymin = gz->matrix_basis[3][1] + area->totrct.ymin - rad;
r_bounding_box->xmax = r_bounding_box->xmin + rad;