Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-05-13 11:14:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-13 11:19:54 +0300
commit79511fca205b9a3edd9db727db8535c01e527fdd (patch)
tree4ed2f86d7e9e581b61fadb99d0d888feb530a35a /source/blender/makesrna/intern/rna_wm_api.c
parent0e0ebdb65c978a22db2bdcc71dd058ec89cac932 (diff)
Fix zero tablet pressure for simulated events
Impacted sculpt/paint tests.
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_wm_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_wm_api.c b/source/blender/makesrna/intern/rna_wm_api.c
index 4bed8c7bb8c..ee7ff472c12 100644
--- a/source/blender/makesrna/intern/rna_wm_api.c
+++ b/source/blender/makesrna/intern/rna_wm_api.c
@@ -646,6 +646,9 @@ static wmEvent *rna_Window_event_add_simulate(wmWindow *win,
STRNCPY(e.utf8_buf, unicode);
}
+ /* Until we expose setting tablet values here. */
+ WM_event_tablet_data_default_set(&e.tablet);
+
return WM_event_add_simulate(win, &e);
}