From 0f981edc990195c699eeb2c9f9544ed4eaba8b5e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 Jan 2013 03:41:23 +0000 Subject: 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. --- source/blender/windowmanager/WM_types.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/windowmanager/WM_types.h') 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; -- cgit v1.2.3