[Bf-blender-cvs] [9708aa63413] master: Fix view-axis gizmo tool-tip placement
Campbell Barton
noreply at git.blender.org
Mon Jan 25 03:46:05 CET 2021
Commit: 9708aa6341329bac93012de083bfb33c97be5667
Author: Campbell Barton
Date: Mon Jan 25 13:44:42 2021 +1100
Branches: master
https://developer.blender.org/rB9708aa6341329bac93012de083bfb33c97be5667
Fix view-axis gizmo tool-tip placement
Bounding box calculation ignored the gizmo size preference.
===================================================================
M source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c
===================================================================
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;
More information about the Bf-blender-cvs
mailing list