WIP: UI: Change Behavior for Multi-Select Enums #104451

Draft
Germano Cavalcante wants to merge 1 commits from mano-wii/blender:no_ctrl_snap_elements into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

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.

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.
Member

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.

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.
Germano Cavalcante added the
Module
User Interface
label 2023-02-08 04:34:34 +01:00
Germano Cavalcante changed title from UI: allow adding snap elements without holding Ctrl to UI: allow adding snap elements without holding Shift 2023-02-08 05:01:11 +01:00
Author
Member

Good 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:
image

Note that lookalike interfaces behave as they please.

A while ago there were only the options Snap To and Snap With (with other names).

The Snap To options did not allow multiple selection. It was just like the Snap 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 recently Target Selection.

Although internally it's an enum of flags, the user doesn't notice the difference, and the inconsistency looks worse inside the popover.

Good 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: ![image](/attachments/28041fe3-a6c9-4a56-9bb6-4386f9c801e0) Note that lookalike interfaces behave as they please. A while ago there were only the options `Snap To` and `Snap With` (with other names). The `Snap To` options did not allow multiple selection. It was just like the `Snap 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 recently `Target Selection`. Although internally it's an enum of flags, the user doesn't notice the difference, and the inconsistency looks worse inside the popover.
Member

+1

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.

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:

  • Remove the need to hold Shift.
  • Hold Ctrl to deselect all options except the one clicked on.
  • Make it consistent in all multi-select enums.
  • Tweak the widget UI of single-select enums to make its behavior more clear.
    This would be a dedicated design task, but dropping a quick mockup:
    image
+1 > 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. 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: * Remove the need to hold `Shift`. * Hold `Ctrl` to deselect all options except the one clicked on. * Make it consistent in all multi-select enums. * Tweak the widget UI of single-select enums to make its behavior more clear. This would be a dedicated design task, but dropping a quick mockup: ![image](/attachments/4b19cf9a-3b6b-4184-a3ce-4b6db62f0728)
Germano Cavalcante force-pushed no_ctrl_snap_elements from 2e4cf81a16 to 9d61c29aa6 2023-02-09 20:14:11 +01:00 Compare
Author
Member

I applied @HooglyBoogly 's patch so the 3 points mentioned são implemented:

  • Remove the need to hold Shift.
  • Hold Ctrl to deselect all options except the one clicked on.
  • Make it consistent in all multi-select enums.

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 and OBJECT_OT_bake

Once accepted (again), release notes will be updated.

I applied @HooglyBoogly 's patch so the 3 points mentioned são implemented: >- Remove the need to hold Shift. >- Hold Ctrl to deselect all options except the one clicked on. >- Make it consistent in all multi-select enums. I also checked some enums flags that might appear in the UI. (others are internal) ["snap_elements"](https://docs.blender.org/api/current/bpy_types_enum_items/snap_element_items.html) from `ToolSettings` and transform operators ["status"](https://docs.blender.org/api/current/bpy.types.ClothSolverResult.html) from `ClothSolverResult` ["delimit"](https://docs.blender.org/api/current/bpy_types_enum_items/mesh_delimit_mode_items.html) from `DecimateModifier` ["debug_options"](https://docs.blender.org/api/current/bpy.types.BooleanModifier.html#bpy.types.BooleanModifier.debug_options) from `BooleanModifier` ["proximity_geometry"](https://docs.blender.org/api/current/bpy.types.VertexWeightProximityModifier.html#bpy.types.VertexWeightProximityModifier.proximity_geometry) from `VertexWeightProximityModifier` ["flip_axis"](https://docs.blender.org/api/current/bpy.types.MeshCacheModifier.html#bpy.types.MeshCacheModifier.flip_axis) from `MeshCacheModifier` ["read_data"](https://docs.blender.org/api/current/bpy.types.MeshSequenceCacheModifier.html#bpy.types.MeshSequenceCacheModifier.read_data) from `MeshSequenceCacheModifier` ["data_types_verts"](https://docs.blender.org/api/current/bpy.types.DataTransferModifier.html#bpy.types.DataTransferModifier.data_types_verts) from `DataTransferModifier` ["data_types_edges"](https://docs.blender.org/api/current/bpy.types.DataTransferModifier.html#bpy.types.DataTransferModifier.data_types_edges) from `DataTransferModifier` ["data_types_loops"](https://docs.blender.org/api/current/bpy.types.DataTransferModifier.html#bpy.types.DataTransferModifier.data_types_loops) from `DataTransferModifier` ["data_types_polys"](https://docs.blender.org/api/current/bpy.types.DataTransferModifier.html#bpy.types.DataTransferModifier.data_types_polys) from `DataTransferModifier` ["mode"](https://projects.blender.org/blender/blender/commit/0e8d1c6bcfcf232b94346af69a216bc4bc413b84#diff-45331b1daf66d5c35e47647befc3fe94c9f39368) from `NodeGeometryCurveSetHandles` "mode" from `NodeGeometryCurveSelectHandles` ["tags"](https://docs.blender.org/api/current/bpy.types.Property.html#bpy.types.Property.tags) from `Property` ["default_flag"](https://docs.blender.org/api/current/bpy.types.EnumProperty.html#bpy.types.EnumProperty.default_flag) from `EnumProperty` ["pass_filter"](https://docs.blender.org/api/current/bpy_types_enum_items/bake_pass_filter_type_items.html) from `BakeSettings` and `OBJECT_OT_bake` Once accepted (again), release notes will be updated.
Germano Cavalcante requested review from Pablo Vazquez 2023-02-09 20:19:39 +01:00
Germano Cavalcante changed title from UI: allow adding snap elements without holding Shift to UI: Change Behavior for Multi-Select Enums 2023-02-09 20:20:49 +01:00
Brecht Van Lommel added this to the User Interface project 2023-02-13 09:22:30 +01:00
Germano Cavalcante changed title from UI: Change Behavior for Multi-Select Enums to WIP: UI: Change Behavior for Multi-Select Enums 2023-03-20 20:43:05 +01:00
This pull request has changes conflicting with the target branch.
  • source/blender/editors/interface/interface_region_tooltip.cc

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u no_ctrl_snap_elements:mano-wii-no_ctrl_snap_elements
git checkout mano-wii-no_ctrl_snap_elements
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
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
No description provided.