Fix T96712: Debug Assert with PrintScrn & ScrollLock keys

Caused by 08d8eee006.
This commit is contained in:
Campbell Barton 2022-03-23 20:52:12 +11:00
parent 94b2d83421
commit ad370868a2
Notes: blender-bot 2023-02-14 06:19:41 +01:00
Referenced by issue #96712, Debug Assert with PrintScrn & ScrollLock keys
1 changed files with 1 additions and 1 deletions

View File

@ -4865,7 +4865,7 @@ static void wm_event_state_update_and_click_set(const GHOST_TEventType type,
wmEvent *event,
wmEvent *event_state)
{
BLI_assert(ISKEYBOARD_OR_BUTTON(event->type));
BLI_assert(ISKEYBOARD_OR_BUTTON(event->type) || (event->type == EVENT_NONE));
BLI_assert(ELEM(event->val, KM_PRESS, KM_RELEASE));
/* Only copy these flags into the `event_state`. */