diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-12 02:04:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-12 02:04:24 +0300 |
commit | ff108aac631f0f48e138fe4b4b850b2103cb0c57 (patch) | |
tree | 0567d8a2e9af6327b0541e9be82f16f043c093e0 | |
parent | c0b7bdd38b9fca91f856fa46246995c344814ab7 (diff) |
Fix rulers being removed on click
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_ruler.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c index 83db61f9e5a..5623681fec4 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c @@ -912,6 +912,9 @@ static int gizmo_ruler_invoke( copy_v3_v3(inter->drag_start_co, ruler_item_pick->co[inter->co_index]); } + /* Should always be true. */ + inter->inside_region = BLI_rcti_isect_pt_v(&ar->winrct, &event->x); + return OPERATOR_RUNNING_MODAL; } |