BlenderDefender / Gizmodal-Ops

An add-on that seamlessly blends Gizmo and Modal operations.
GNU General Public License v3.0
33 stars 1 forks source link

Modal operator triggers on mousemove, even though the G-Key was released. #2

Closed BlenderDefender closed 2 years ago

BlenderDefender commented 2 years ago

Describe the bug If you press G + KEY so quickly in a sequence that G remains pressed, the modal operator is executed after the other operator has finished, even though the G-key was released.

To Reproduce Steps to reproduce the behavior:

  1. Open Blender
  2. Press and hold G
  3. Press and release X
  4. Release G
  5. Press ESC
  6. Move the mouse

Expected behavior After releasing the G-key, the TIME_WINDOW should start and the modal operator should not be invoked.

System Information

Additional context Log of the Events in the above scenario:

G
MOUSEMOVE
X
MOUSEMOVE
ESC
INBETWEEN_MOUSEMOVE
MOUSEMOVE
MOUSEMOVE
Moving the object
BlenderDefender commented 2 years ago

Idea to fix the bug: Assume, that if any other key is pressed, the original key was released. This could fix #4 as well.