Blender Git Commit Log

Git Commits -> Revision 1638af1

Revision 1638af1 by Campbell Barton (master)
March 1, 2021, 01:00 (GMT)
WM: don't set event prevval/prevtype on cursor motion

Currently the intended behavior regarding prevval/prevtype isn't
handled consistently. However, including cursor motion causes events
in `wm->queue` and `wm->eventstate` to behave differently,
where `wm->eventstate` ignores motion (necessary for click detection).

This makes checks from `wm->eventstate` to events in the queue fail.

This reverts 39919e35326c732141bfd2d740b19000b6bc1d51,
using the `event.type` instead of it's previous type.
This works as it includes mouse button release events.

Commit Details:

Full Hash: 1638af109e46522a1a24645289016922bb9ca977
Parent Commit: fc08fe8
Lines Changed: +2, -5

2 Modified Paths:

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