Blender Git Loki

Git Commits -> Revision b5d154f

Revision b5d154f by Campbell Barton (master)
March 5, 2021, 06:10 (GMT)
Cleanup: move check_drag & check_click out of wmEvent

These variables track the wmWindow.event_queue state,
however they were used in a way that wasn't correct.

- check_drag & check_click from wmWindow.eventstate
were used to track the click/drag status of events handled in
wmWindow.event_queue.
- Event's in the queue read from wmEvent.check_drag.
- Once a drag action was detected, wmWindow.eventstate.check_drag
was disabled.

Disabling drag in the event state would not change the drag state
for values already in the event queue.

Simplify logic by moving these values into the window,
so there is one place these variables are tracked.

Commit Details:

Full Hash: b5d154f400e46ba322f0e08a231bb2557bf51a1e
Parent Commit: 663b0bb
Lines Changed: +32, -22

4 Modified Paths:

/source/blender/makesdna/DNA_windowmanager_types.h (+10, -3) (Diff)
/source/blender/windowmanager/intern/wm.c (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+20, -15) (Diff)
/source/blender/windowmanager/WM_types.h (+0, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021