diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-06 13:13:01 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-06 13:22:09 +0300 |
commit | f1c8c25a3edfbb03795250965ece9d39fef58356 (patch) | |
tree | ae04bad082c3939783725482c5c0922ebf42068c /source/blender/windowmanager | |
parent | 32ef77bf0a995db447ad92d4a01e7ed5afcb5349 (diff) |
UI: rename Translate/Grab to Move in UI, shortcuts stay the same.
Diffstat (limited to 'source/blender/windowmanager')
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_types.h b/source/blender/windowmanager/gizmo/WM_gizmo_types.h index 2339523db5e..76e263269bb 100644 --- a/source/blender/windowmanager/gizmo/WM_gizmo_types.h +++ b/source/blender/windowmanager/gizmo/WM_gizmo_types.h @@ -83,7 +83,7 @@ typedef enum eWM_GizmoFlagFlag { /** * Hide the cursor and lock it's position while interacting with this gizmo. */ - WM_GIZMO_GRAB_CURSOR = (1 << 6), + WM_GIZMO_MOVE_CURSOR = (1 << 6), /** Don't write into the depth buffer when selecting. */ WM_GIZMO_SELECT_BACKGROUND = (1 << 7), } eWM_GizmoFlagFlag; diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_intern.h b/source/blender/windowmanager/gizmo/intern/wm_gizmo_intern.h index d4a9dc4f54c..a580a063aaf 100644 --- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_intern.h +++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_intern.h @@ -111,7 +111,7 @@ struct wmGizmoMap { struct wmGizmo *modal; /* array for all selected gizmos */ struct wmGizmoMapSelectState select; - /* cursor location at point of entering modal (see: WM_GIZMO_GRAB_CURSOR) */ + /* cursor location at point of entering modal (see: WM_GIZMO_MOVE_CURSOR) */ int event_xy[2]; short event_grabcursor; /* until we have nice cursor push/pop API. */ diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c index 6100905d5cf..973addc506d 100644 --- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c +++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c @@ -955,7 +955,7 @@ void wm_gizmomap_modal_set( gz->state |= WM_GIZMO_STATE_MODAL; gzmap->gzmap_context.modal = gz; - if ((gz->flag & WM_GIZMO_GRAB_CURSOR) && + if ((gz->flag & WM_GIZMO_MOVE_CURSOR) && (event->is_motion_absolute == false)) { WM_cursor_grab_enable(win, true, true, NULL); |