calling operator via gizmo with ALT key pressed no longer works #93699

Closed
opened 2021-12-05 14:11:00 +01:00 by MACHIN3 · 9 comments

System Information
Operating system: Linux-4.15.0-159-generic-x86_64-with-glibc2.27 64 Bits
Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.91.03

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557
Worked: 2.93

Short description of error
Calling an operator from a button, with a modifier key, such as ALT, SHIFT or CTRL pressed is fairly common practice in the addon space.
The keypress event is simply checked for in the operator's invoke(), and consequentially a single operator can perform varying actions.

In 2.93, the same can be done when calling an operator via a gizmo.
In 3.0 however, the ALT key no longer works, while SHIFT and CTRL continue to work. This is even noticeable before the user clicks on a gizmo.
As soon as the ALT key is held down, the gizmo highlight disables, as if the mouse pointer wasn't located on top of it. This is true for native gizmos too, and again wasn't the case in 2.93.

video demo

calling_operator_via_gizmo_with_alt_pressed.blend

Exact steps for others to reproduce the error

  • open the attached blend file in 2.93 and 3.0
  • run the script in the Text editor
    • a gizmo appears at the cube's origin
    • click it to call the ModkeyOperator and watch what it prints to the system console
      • hold down ALT, SHIFT, CTRLor nothing while doing this
  • in 2.93 it will print ALT in addition to the other possibilities
  • in 3.0 it won't print ALT, as it's never called with ÀLT pressed, instead the gizmo becomes inactive
**System Information** Operating system: Linux-4.15.0-159-generic-x86_64-with-glibc2.27 64 Bits Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.91.03 **Blender Version** Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `f1cca30557` Worked: 2.93 **Short description of error** Calling an operator from a button, with a modifier key, such as `ALT`, `SHIFT` or `CTRL` pressed is fairly common practice in the addon space. The keypress event is simply checked for in the operator's `invoke()`, and consequentially a single operator can perform varying actions. In 2.93, the same can be done when calling an operator via a gizmo. In 3.0 however, the `ALT` key no longer works, while `SHIFT` and `CTRL` continue to work. This is even noticeable before the user clicks on a gizmo. As soon as the `ALT` key is held down, the gizmo highlight disables, as if the mouse pointer wasn't located on top of it. This is true for native gizmos too, and again wasn't the case in 2.93. [video demo ](https://www.youtube.com/watch?v=fXdXTuU5QfM) [calling_operator_via_gizmo_with_alt_pressed.blend](https://archive.blender.org/developer/F12691580/calling_operator_via_gizmo_with_alt_pressed.blend) **Exact steps for others to reproduce the error** * open the attached blend file in 2.93 and 3.0 * run the script in the Text editor * a gizmo appears at the cube's origin * click it to call the `ModkeyOperator` and watch what it prints to the system console * hold down `ALT`, `SHIFT`, `CTRL`or nothing while doing this * in 2.93 it will print `ALT` in addition to the other possibilities * in 3.0 it won't print `ALT`, as it's never called with `ÀLT` pressed, instead the gizmo becomes inactive
Author

Added subscriber: @MACHIN3

Added subscriber: @MACHIN3
MACHIN3 changed title from calling operator via gizmo with ALT key pressed to calling operator via gizmo with ALT key pressed no longer works 2021-12-05 14:11:12 +01:00
Author

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Author

I think this one is for you again @ideasman42
Thank you!

I think this one is for you again @ideasman42 Thank you!

Added subscriber: @ostapblender

Added subscriber: @ostapblender

Yeah, I can see the same pressing nothing/CTRL/ALT/SHIFT in this sequence

image.png

It's just doing nothing in 3.0 with Alt pressed. Well, and gizmo becomes inactive, yes.

image.png

Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12
Worked: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: 84da05a8b8
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557

Yeah, I can see the same pressing nothing/CTRL/ALT/SHIFT in this sequence ![image.png](https://archive.blender.org/developer/F12691644/image.png) It's just doing nothing in 3.0 with Alt pressed. Well, and gizmo becomes inactive, yes. ![image.png](https://archive.blender.org/developer/F12691646/image.png) Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12 Worked: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: `84da05a8b8` Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `f1cca30557`

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'

This is because Alt is explicitly set to unchecked for gizmo_tweak:
image.png

If you enable Any, the "problem" is "solved".
This was intentionally changed in 83975965a7.
Therefore it is not considered a bug.

For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

This is because `Alt` is explicitly set to unchecked for `gizmo_tweak`: ![image.png](https://archive.blender.org/developer/F12728103/image.png) If you enable `Any`, the "problem" is "solved". This was intentionally changed in 83975965a7. Therefore it is not considered a bug. For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug
Author

Fantastic, thanks for the info. Again, very much appreciated!

Fantastic, thanks for the info. Again, very much appreciated!
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#93699
No description provided.