Missing events in modal operator #59250
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#59250
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10 Enterprise (Version 1803)
Graphics card: GTX 1070
Blender Version
Broken:
(2.80, 16fc62e15f0, blender2.8, 2018-12-12)
Short description of error
Blender will not send RELEASE key events to a running modal operators if an operator or dialogue is associated with the key.
Exact steps for others to reproduce the error
Starting form the Simple Modal Template script logging events shows missing events.
Examples:
Pressing "Q" will generate a Event with type Q and value PRESS but releasing will not create an Event with type Q and value RELEASE.
Pressing "W" on the other hand generates both events
Pressing "G" will also only generate the initial PRESS event.
The attached .blend file contains a simple script that logs key (and mouse) events to the console to show the missing events.capture_bug.blend
Added subscriber: @DominikP
Added subscribers: @ideasman42, @JacquesLucke
I think that is intended behavior. By pressing these keys you register another event handler that can decide whether to pass through events or not. It's the same when your modal operator does not return
{'PASS_THROUGH'}
. Modal operators "below" your operator will never see those.@ideasman42 should know if this really is intended behavior.
Changed status from 'Open' to: 'Archived'
Right, modal keymap handler isn't guaranteed to get all events - other modal operators and popups can swallow the events before they reach this modal operator.
Closing.