diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-09 16:10:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-10 01:14:22 +0300 |
commit | 3daf5cc1ceb4854ba7ca481b9e2f1a5ed19bd2cb (patch) | |
tree | 5c1b49497d66ec2f6fb010e9ff60d29bdcde106f /source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c | |
parent | eb7b450c0c65388758fcec5764a759d3d347c314 (diff) |
Gizmo: 2d select now takes region coords
Was taking an event, when only the region coords are needed.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c | 4 |
1 files changed, 2 insertions, 2 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 93617f22490..5a4f910955e 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_navigate_type.c @@ -343,9 +343,9 @@ static void gizmo_axis_draw(const bContext *C, wmGizmo *gz) } static int gizmo_axis_test_select( - bContext *UNUSED(C), wmGizmo *gz, const wmEvent *event) + bContext *UNUSED(C), wmGizmo *gz, const int mval[2]) { - float point_local[2] = {UNPACK2(event->mval)}; + float point_local[2] = {UNPACK2(mval)}; sub_v2_v2(point_local, gz->matrix_basis[3]); mul_v2_fl(point_local, 1.0f / (gz->scale_basis * UI_DPI_FAC)); |