diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-17 07:41:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-17 07:41:23 +0400 |
commit | 0f981edc990195c699eeb2c9f9544ed4eaba8b5e (patch) | |
tree | cd444d0c49f75cf434bc3a5711fd3e72974a5ca3 /source/blender/windowmanager/WM_types.h | |
parent | 60e558393321edf4c8a41376c600981ae8636d24 (diff) |
fix airbrush + tablet pressure bug.
Timer events used by the airbrush would always give a pressure of 1.0, ignoring the tablets real pressure in all paint modes.
Move tablet data into its own struct-member so it can be used with timer events.
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 96a7b156cd8..86fd4856f7e 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -445,7 +445,10 @@ typedef struct wmEvent { /* keymap item, set by handler (weak?) */ const char *keymap_idname; - + + /* tablet info, only use when the tablet is active */ + struct wmTabletData *tablet_data; + /* custom data */ short custom; /* custom data type, stylus, 6dof, see wm_event_types.h */ short customdatafree; |