Operator.bl_options "GRAB_CURSOR" fails with nested calls. #80853

Closed
opened 2020-09-16 20:39:28 +02:00 by michael campbell · 9 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-11 09:14, hash: 1b6dd42803
Worked: (newest version of Blender that worked as expected)

Short description of error
bl_options "GRAB_CURSOR" option malfunctions if user presses middle mouse

Exact steps for others to reproduce the error
use an operator that has "GRAB_CURSOR" option in the bl_options. when the modal is running press middle mouse as if you want to rotate the view whilst using the modal. mouse wrapping stops working.

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-11 09:14, hash: `1b6dd42803` Worked: (newest version of Blender that worked as expected) **Short description of error** bl_options "GRAB_CURSOR" option malfunctions if user presses middle mouse **Exact steps for others to reproduce the error** use an operator that has "GRAB_CURSOR" option in the bl_options. when the modal is running press middle mouse as if you want to rotate the view whilst using the modal. mouse wrapping stops working.

Added subscriber: @3di

Added subscriber: @3di

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Please attach test script.

Please attach test script.

script below. To replicate:

  • install addon
  • add a cube
  • press ctrl + shift + f in object mode and choose the solidify option from the popup menu
  • move the mouse left and right to change size of solidify
  • the cursor will wrap around the 3d viewport
  • press middle mouse button whilst still in themodal to rotate the view
  • let go of the middle mouse button and try moving the mouse to the left beyond the viewport
  • the cursor will no longer wrap around

The above behaviour will vary dependant on how many times the cursor has wrapped around. For example if you have a text editor to the right of the 3d viewport and you move your mouse to the right of the 3d viewport, the cursor will go to the left of the viewport, but hodling down the middle mouse wheel and moving, will temporarily move the tetxt editor. As though one bit of blender is ignoring cursor wrapping.

grab_mouse_bug.rar

script below. To replicate: - install addon - add a cube - press ctrl + shift + f in object mode and choose the solidify option from the popup menu - move the mouse left and right to change size of solidify - the cursor will wrap around the 3d viewport - press middle mouse button whilst still in themodal to rotate the view - let go of the middle mouse button and try moving the mouse to the left beyond the viewport - the cursor will no longer wrap around The above behaviour will vary dependant on how many times the cursor has wrapped around. For example if you have a text editor to the right of the 3d viewport and you move your mouse to the right of the 3d viewport, the cursor will go to the left of the viewport, but hodling down the middle mouse wheel and moving, will temporarily move the tetxt editor. As though one bit of blender is ignoring cursor wrapping. [grab_mouse_bug.rar](https://archive.blender.org/developer/F8891581/grab_mouse_bug.rar)
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Note that this test is much to advanced, we need a simple script that can redo the error.

Having looked at the code though, ending a modal operator always disables grab.

This is related to the issue of modifiers each defining a mouse cursor, which has similar issues.

Ideally we would have a stack of interactivity states (mouse cursor grab, mouse cursor icon...) which would be pushed/popped automatically.

Note that this test is much to advanced, we need a simple script that can redo the error. Having looked at the code though, ending a modal operator always disables grab. This is related to the issue of modifiers each defining a mouse cursor, which has similar issues. Ideally we would have a stack of interactivity states (mouse cursor grab, mouse cursor icon...) which would be pushed/popped automatically.

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

Changed status from 'Needs Triage' to: 'Confirmed'
Campbell Barton changed title from bl_options "GRAB_CURSOR" option malfunctions if user presses middle mouse to Operator.bl_options "GRAB_CURSOR" fails with nested calls. 2020-11-10 10:58:06 +01:00
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:24:05 +01:00

This issue has been reported before, see #63668. Will merge reports.

This issue has been reported before, see #63668. Will merge reports.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-09-15 18:14:04 +02:00
Germano Cavalcante added
Status
Duplicate
and removed
Status
Archived
labels 2023-09-15 18:14:14 +02:00
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
4 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#80853
No description provided.