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-10-22 03:53:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-22 03:59:37 +0300
commit88660d67a4c5e88e7b7b7304b66e4d893affed91 (patch)
tree016caca194bd751f7786b636d3119e838579e313 /source/blender/makesrna/intern/rna_wm_api.c
parentcc3fdffbbe450ef75a49571ec75fd8f0ecb45550 (diff)
WM: ensure is_repeat isn't set for mouse-move events
Follow up to d782bad62dc53373bb28811c0672da81924371d6 Also clear this for simulated events.
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_wm_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_wm_api.c b/source/blender/makesrna/intern/rna_wm_api.c
index 47d5e9b6313..2cabc89feee 100644
--- a/source/blender/makesrna/intern/rna_wm_api.c
+++ b/source/blender/makesrna/intern/rna_wm_api.c
@@ -632,6 +632,7 @@ static wmEvent *rna_Window_event_add_simulate(wmWindow *win,
wmEvent e = *win->eventstate;
e.type = type;
e.val = value;
+ e.is_repeat = false;
e.x = x;
e.y = y;
/* Note: KM_MOD_FIRST, KM_MOD_SECOND aren't used anywhere, set as bools */