Fix #112028: Ctrl+Alt+Scroll not working on all selected objects #112095

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:112028_b into main 2023-09-11 15:33:45 +02:00
Member

Regression from c51467cd4c.

Above commit made the IS_ALLSELECT_EVENT more strict and now excluded
mousewheel events.

Refining IS_ALLSELECT_EVENT even further (to respect mousewheel there)
is unfortunately not easily possible since mouswheel events are excluded
from win->eventstate (could only be retrieved from win->event_queue
but that is not reliable either since it might have events that are not
handled yet).

Possible solutions:


Adding mouswheel events to win->eventstate

  • seemed to risky (could not forsee all possible consequences this would
    have, e.g. double-click behavior)

Moving shortcuts for button array copy/paste from ALT to SHIFT

  • downside: breaking user habits
  • upside: additionally holding ALT could open the door for pasting on
    all selected items
    -- downside: without further work to make paste to multiple work better,
    it would bring back #108096

So propose to do what was first suggested in #108270 as a third
solution:

Instead of refining IS_ALLSELECT_EVENT, bring it back to the state
before c51467cd4c (So Ctrl + Alt + V would still pass this test), but
specifically "filter out Ctrl + Alt + V right after in ui_apply_but().

Regression from c51467cd4c. Above commit made the IS_ALLSELECT_EVENT more strict and now excluded mousewheel events. Refining IS_ALLSELECT_EVENT even further (to respect mousewheel there) is unfortunately not easily possible since mouswheel events are excluded from `win->eventstate` (could only be retrieved from `win->event_queue` but that is not reliable either since it might have events that are not handled yet). Possible solutions: ___ Adding mouswheel events to `win->eventstate` - seemed to risky (could not forsee all possible consequences this would have, e.g. double-click behavior) ___ Moving shortcuts for button array copy/paste from ALT to SHIFT - downside: breaking user habits - upside: additionally holding ALT could open the door for pasting on all selected items -- downside: without further work to make paste to multiple work better, it would bring back #108096 ___ So propose to do what was first suggested in #108270 as a third solution: Instead of refining IS_ALLSELECT_EVENT, bring it back to the state before c51467cd4c (So `Ctrl + Alt + V` would still pass this test), but specifically "filter out `Ctrl + Alt + V` right after in ui_apply_but().
Philipp Oeser added 1 commit 2023-09-07 19:11:06 +02:00
9a9a84bb2d Fix #112028: Ctrl+Alt+Scroll not working on all selected objects
Regression from c51467cd4c.

Above commit made the IS_ALLSELECT_EVENT more strict and now excluded
mousewheel events.

Refining IS_ALLSELECT_EVENT even further (to respect mousewheel there)
is unfortunately not easily possible since mouswheel events are excluded
from `win->eventstate` (could only be retrieved from `win->event_queue`
but that is not reliable either since it might have events that are not
handled yet).

Possible solutions:
___
Adding mouswheel events to `win->eventstate`
- seemed to risky (could not forsee all possible consequences this would
have, e.g. double-click behavior)
___
Moving shortcuts for button array copy/paste from ALT to SHIFT
- downside: breaking user habits
- upside: additionally holding ALT could open the door for pasting on
all selected items
-- downside: without further work to make paste to multiple work better,
it would bring back #108096
___

So propose to do what was first suggested in #108270 as a third
solution:

Instead of refining IS_ALLSELECT_EVENT, bring it back to the state
before c51467cd4c (So `Ctrl + Alt + V` would still pass this test), but
specifically "filter out `Ctrl + Alt + V` right after in ui_apply_but().
Philipp Oeser requested review from Campbell Barton 2023-09-07 19:11:30 +02:00
Philipp Oeser added this to the User Interface project 2023-09-07 19:11:35 +02:00
Author
Member

Would need to go into 3.6 LTS

Would need to go into 3.6 LTS
Campbell Barton approved these changes 2023-09-11 14:52:43 +02:00
Philipp Oeser merged commit 397a0a0e7e into main 2023-09-11 15:33:45 +02:00
Philipp Oeser deleted branch 112028_b 2023-09-11 15:33:46 +02:00
Sign in to join this conversation.
No reviewers
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
2 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#112095
No description provided.