diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-12-11 13:35:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-12-11 13:38:55 +0300 |
commit | 6475f163ecf137b3bfc8a64405e194eef44d8746 (patch) | |
tree | d0992073d4ccd8a8525586edec430d152dc3af59 /source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h | |
parent | 4737b95b6519bc1b66a812bab73d4664b3098261 (diff) |
Manipulator: make grab-cursor a manipulator flag
As with operators, allow manipulators to grab the cursor.
Previously this was enabled for all 3D manipulators.
Diffstat (limited to 'source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h')
-rw-r--r-- | source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h b/source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h index bf5c38b9e39..419ac7d5521 100644 --- a/source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h +++ b/source/blender/windowmanager/manipulators/intern/wm_manipulator_intern.h @@ -112,6 +112,9 @@ struct wmManipulatorMap { struct wmManipulator *modal; /* array for all selected manipulators */ struct wmManipulatorMapSelectState select; + /* cursor location at point of entering modal (see: WM_MANIPULATOR_GRAB_CURSOR) */ + int event_xy[2]; + short event_grabcursor; } mmap_context; }; |