WIP: UI: Change Behavior for Multi-Select Enums #104451
Draft
Germano Cavalcante
wants to merge 1 commits from
When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
mano-wii/blender:no_ctrl_snap_elements
into main
pull from: mano-wii/blender:no_ctrl_snap_elements
merge into: blender:main
blender:main
blender:blender-v4.0-release
blender:temp-sculpt-dyntopo
blender:blender-v3.6-release
blender:universal-scene-description
blender:blender-v3.3-release
blender:asset-browser-frontend-split
blender:brush-assets-project
blender:asset-shelf
blender:anim/armature-drawing-refactor-3
blender:temp-sculpt-dyntopo-hive-alloc
blender:tmp-usd-python-mtl
blender:tmp-usd-3.6
blender:blender-v3.5-release
blender:blender-projects-basics
blender:blender-v2.93-release
blender:temp-sculpt-attr-api
blender:realtime-clock
blender:sculpt-dev
blender:gpencil-next
blender:bevelv2
blender:microfacet_hair
blender:xr-dev
blender:principled-v2
When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Reviewers
Request review
No reviewers
Labels
Clear labels
This issue affects/is about backward or forward compatibility
Issues relating to security: https://wiki.blender.org/wiki/Process/Vulnerability_Reports
Apply labels
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
This issue affects/is about backward or forward compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
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
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
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
Issues relating to security: https://wiki.blender.org/wiki/Process/Vulnerability_Reports
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 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 & 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
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
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
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Set Project
Clear projects
No project
Assignees
Assign users
Clear assignees
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#104451
Reference in New Issue
There is no content yet.
Delete Branch "mano-wii/blender:no_ctrl_snap_elements"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Many enums in Blender are able to have multiple items selected, but this feature isn't exposed very well.
It's not clear which enums support this, so you have to try by pressing shift when clicking on them.
And a lot of the time it's more valuable to have multiple items selected, but it's harder because of the modifier key.
A more straightforward solution is to use the multi-select behavior by default, only turning off all other items off when a modifier key is pressed.
This patch proposes this changed behavior with ctrl as the modifier key.
For some background, I tried this years ago: https://archive.blender.org/developer/D7883
I'm not really convinced it makes sense to just change the behavior of the snap enum without changing behavior elsewhere too. That's just adding inconsistencies. Maybe it makes sense to change it everywhere. I think that's fine, but there was no conclusion about that before.
The other option is just presenting the settings as regular checkboxes.
UI: allow adding snap elements without holding Ctrlto UI: allow adding snap elements without holding ShiftGood to see interest in this.
This is a change I discussed a while ago (prior to 2.80, I don't remember if I submitted the patch).
I agree that it would be good to have consistency, but currently this consistency does not exist. See the image below:

Note that lookalike interfaces behave as they please.
A while ago there were only the options
Snap To
andSnap With
(with other names).The
Snap To
options did not allow multiple selection. It was just like theSnap With
options. Only one at time. It had consistency.But then "mixed snap" was implemented, which turned these enums into flags allowing for multiple selection with
Shift
.In the meantime came the options of
Affect
and recentlyTarget Selection
.Although internally it's an enum of flags, the user doesn't notice the difference, and the inconsistency looks worse inside the popover.
+1
We should definitely make this consistent everywhere. It will make the functionality more discoverable, there are users that don't even know it's possible to select multiple snap elements.
To make this properly, I'd propose to:
Shift
.Ctrl
to deselect all options except the one clicked on.This would be a dedicated design task, but dropping a quick mockup:
2e4cf81a16
to9d61c29aa6
I applied @HooglyBoogly 's patch so the 3 points mentioned são implemented:
I also checked some enums flags that might appear in the UI. (others are internal)
"snap_elements" from
ToolSettings
and transform operators"status" from
ClothSolverResult
"delimit" from
DecimateModifier
"debug_options" from
BooleanModifier
"proximity_geometry" from
VertexWeightProximityModifier
"flip_axis" from
MeshCacheModifier
"read_data" from
MeshSequenceCacheModifier
"data_types_verts" from
DataTransferModifier
"data_types_edges" from
DataTransferModifier
"data_types_loops" from
DataTransferModifier
"data_types_polys" from
DataTransferModifier
"mode" from
NodeGeometryCurveSetHandles
"mode" from
NodeGeometryCurveSelectHandles
"tags" from
Property
"default_flag" from
EnumProperty
"pass_filter" from
BakeSettings
andOBJECT_OT_bake
Once accepted (again), release notes will be updated.
UI: allow adding snap elements without holding Shiftto UI: Change Behavior for Multi-Select EnumsUI: Change Behavior for Multi-Select Enumsto WIP: UI: Change Behavior for Multi-Select EnumsReviewers