uv.select operator is hardcoded to cycle #86382

Closed
opened 2021-03-08 10:33:45 +01:00 by Ludvik Koutny · 10 comments
Contributor

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40

Blender Version
Broken: version: 2.92.0, branch: master (modified), commit date: 2021-02-24 16:25, hash: 02948a2cab
Worked: (newest version of Blender that worked as expected)

Short description of error
When using uv.select operator in "Extend" mode, the selection cycles between selection and deselection instead of always extending the existing selection, and operator has no option to turn this behavior off. This is inconsistent with rest of selection operators in other Blender editors.

image.png

Exact steps for others to reproduce the error

  1. Map the uv.select operator to Shift Left Mouse in the UV Editor (Global) context as shown in the screenshot above.
  2. Enable the "Extend" option
  3. In a Blender file containing any geometry with existing UVs, enter the edit mode and in UV editor, select some UVs
  4. Use Shift+Left Mouse to add another UV mesh element to selection
  5. Use Shift+Left Mouse on already selected UV mesh element
    Result: The UV mesh element is deselected despite the uv.select operator being set to "Extend"
    Expected: The UV mesh element is not deselected when an operation to Extend current selection is performed
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40 **Blender Version** Broken: version: 2.92.0, branch: master (modified), commit date: 2021-02-24 16:25, hash: `02948a2cab` Worked: (newest version of Blender that worked as expected) **Short description of error** When using uv.select operator in "Extend" mode, the selection cycles between selection and deselection instead of always extending the existing selection, and operator has no option to turn this behavior off. This is inconsistent with rest of selection operators in other Blender editors. ![image.png](https://archive.blender.org/developer/F9878978/image.png) **Exact steps for others to reproduce the error** 1. Map the uv.select operator to Shift Left Mouse in the UV Editor (Global) context as shown in the screenshot above. 2. Enable the "Extend" option 3. In a Blender file containing any geometry with existing UVs, enter the edit mode and in UV editor, select some UVs 4. Use Shift+Left Mouse to add another UV mesh element to selection 5. Use Shift+Left Mouse on already selected UV mesh element Result: The UV mesh element is deselected despite the uv.select operator being set to "Extend" Expected: The UV mesh element is not deselected when an operation to **Extend** current selection is performed
Author
Contributor

Added subscriber: @Rawalanche

Added subscriber: @Rawalanche
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Notes:

  • view3d select has Deselect and Toggle selection options
  • uv select does not have these

There is already a comment in uv_mouse_select_multi about this:

/* Current behavior of 'extend'
 * is actually toggling, so pass extend flag as 'toggle' here */

This sounds like it is working as intended (but this also sounds like this could see improvements -- e.g. by exposing Toggle selection option and using it)

Notes: - view3d select has `Deselect` and `Toggle selection` options - uv select does not have these There is already a comment in `uv_mouse_select_multi` about this: > /* Current behavior of 'extend' > * is actually toggling, so pass extend flag as 'toggle' here */ This sounds like it is working as intended (but this also sounds like this could see improvements -- e.g. by exposing `Toggle selection` option and using it)
Author
Contributor

In #86382#1125890, @lichtwerk wrote:
Notes:

  • view3d select has Deselect and Toggle selection options
  • uv select does not have these

There is already a comment in uv_mouse_select_multi about this:

/* Current behavior of 'extend'
 * is actually toggling, so pass extend flag as 'toggle' here */

This sounds like it is working as intended (but this also sounds like this could see improvements -- e.g. by exposing Toggle selection option and using it)

I am not sure about this. This may be working as expected for a programmer who is aware of a comment somewhere in the C code, but definitely not for the user. The experienced user sees "Extend" setting in the keymap, with no implication it also means cycling. And beginner/intermediate user is probably not even editing the keymaps themselves, so they will most likely be confused about why are they deselecting elements when holding shift key, which usually means "Add to selection" in all the other parts of Blender. It's really weird if it's allowed to pass behavior which is inconsistent with most other editors for no obvious reason as intended.

> In #86382#1125890, @lichtwerk wrote: > Notes: > > - view3d select has `Deselect` and `Toggle selection` options > - uv select does not have these > > There is already a comment in `uv_mouse_select_multi` about this: > >> /* Current behavior of 'extend' >> * is actually toggling, so pass extend flag as 'toggle' here */ > > This sounds like it is working as intended (but this also sounds like this could see improvements -- e.g. by exposing `Toggle selection` option and using it) I am not sure about this. This may be working as expected for a programmer who is aware of a comment somewhere in the C code, but definitely not for the user. The experienced user sees "Extend" setting in the keymap, with no implication it also means cycling. And beginner/intermediate user is probably not even editing the keymaps themselves, so they will most likely be confused about why are they deselecting elements when holding shift key, which usually means "Add to selection" in all the other parts of Blender. It's really weird if it's allowed to pass behavior which is inconsistent with most other editors for no obvious reason as intended.
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

OK, will leave that up to the module to classify/decide.

... they will most likely be confused about why are they deselecting elements when holding shift key, which usually means "Add to selection" in all the other parts of Blender. It's really weird if it's allowed to pass behavior which is inconsistent with most other editors for no obvious reason as intended.

Not sure about this though, the behavior of {key Shift Click} to actually toggle seem quite common to me [sure, this then uses its own option which is not called Extend, true ...]?

  • happens for all mesh elements
  • also happens in Animations Editors etc
OK, will leave that up to the module to classify/decide. > ... they will most likely be confused about why are they deselecting elements when holding shift key, which usually means "Add to selection" in all the other parts of Blender. It's really weird if it's allowed to pass behavior which is inconsistent with most other editors for no obvious reason as intended. Not sure about this though, the **behavior** of {key Shift Click} to actually toggle seem quite common to me [sure, this then uses its own option which is not called `Extend`, true ...]? - happens for all mesh elements - also happens in Animations Editors etc
Author
Contributor

In #86382#1126177, @lichtwerk wrote:
OK, will leave that up to the module to classify/decide.

... they will most likely be confused about why are they deselecting elements when holding shift key, which usually means "Add to selection" in all the other parts of Blender. It's really weird if it's allowed to pass behavior which is inconsistent with most other editors for no obvious reason as intended.

Not sure about this though, the behavior of {key Shift Click} to actually toggle seem quite common to me [sure, this then uses its own option which is not called Extend, true ...]?

  • happens for all mesh elements
  • also happens in Animations Editors etc

Yes, you are probably right. I have not tested with the default keymap, only with the customized one, so I assume toggle is on in the stock one by default. Anyway, I still think that if the Toggle option is available in other editors, it should be available in the UV one too. Especially given how similar 3D view mesh element and UV editor mesh element selection is, it'd be really odd to have two different workflows per editor, if user doesn't want Extend mode to also toggle.

> In #86382#1126177, @lichtwerk wrote: > OK, will leave that up to the module to classify/decide. > >> ... they will most likely be confused about why are they deselecting elements when holding shift key, which usually means "Add to selection" in all the other parts of Blender. It's really weird if it's allowed to pass behavior which is inconsistent with most other editors for no obvious reason as intended. > > Not sure about this though, the **behavior** of {key Shift Click} to actually toggle seem quite common to me [sure, this then uses its own option which is not called `Extend`, true ...]? > - happens for all mesh elements > - also happens in Animations Editors etc Yes, you are probably right. I have not tested with the default keymap, only with the customized one, so I assume toggle is on in the stock one by default. Anyway, I still think that if the Toggle option is available in other editors, it should be available in the UV one too. Especially given how similar 3D view mesh element and UV editor mesh element selection is, it'd be really odd to have two different workflows per editor, if user doesn't want Extend mode to also toggle.

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'

Changed status from 'Needs Developer To Reproduce' to: 'Resolved'
Campbell Barton self-assigned this 2022-05-03 04:54:35 +02:00

As of d356edf420 this is no longer the case.

As of d356edf420 this is no longer the case.
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#86382
No description provided.