Blender Git Commit Log

Git Commits -> Revision bfc70a6

Revision bfc70a6 by Campbell Barton (master)
March 1, 2021, 06:12 (GMT)
Fix T86116: Failure to detect click events with modifier held

Click detection logic relied on the event queue not accumulating events
as newly added events at the end of the queue adjusted
`wm->eventstate->prev{val/type}` which was then compared with events
at the front of the queue.

This made Ctrl-Click fail to detect the click as releasing Ctrl
set the previous value before the previous event was handled.

In practice this only happened in heavy scenes,
updating 10 fps or lower. It also made automated tests fail that
accumulate events before handling them.

Commit Details:

Full Hash: bfc70a6a958b9c35bde765ea8a02e8b1fd36db8b
Parent Commit: d8b3521
Lines Changed: +14, -14

1 Modified Path:

/source/blender/windowmanager/intern/wm_event_system.c (+14, -14) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021