Multiple calls of 'view3d.select' with LMB selection keymap #95452

Open
opened 2022-02-02 19:32:46 +01:00 by Germano Cavalcante · 8 comments

System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.14760 Core Profile Context 20.45.37.01 27.20.14537.1001

Blender Version
Broken: 2.83, 3.2.0
Worked: Apparently never

Short description of error
In the left-click selection settings, considering only Object Mode in the keymap, there are currently 3 places setting the {key LMB} selection shortcut:

  1. {nav 3D View > 3D View (Global) > Selection}
  2. {nav 3D View > Object Mode > 3D View Tool: Tweak > Selection}
  3. {nav 3D View > Object Mode > 3D View Tool: Tweak (fallback) > Selection}

Respectively each of them can be tested by pressing {key LMB} in the 3D View under the following conditions:

  1. Always active
  2. Active when Tweak Selection Tool is enabled (between selection tools)
  3. Active when fallback selection is Tweak and the Selection Tool is not enabled

The problem is that, in the cases 2 and 3, the key item of 1 is also mapped resulting in view3d.select being called 2 times (since this operator is pass though).

This can be a problem for users editing the settings as they need to make sure the properties of both calls are "compatible".

NOTE: for undo, with the default settings, this is not a problem as an undo step is only added when something changes.

Exact steps for others to reproduce the error

  • Make sure to use keymap with LMB selection

Testing the Selection Tool Shortcut:

  • In the 3D view, activate the Tweak selection tool
  • In the keymap, go to {nav 3D View > Object Mode > 3D View Tool: Tweak > Selection} and disable the option Deselect On Nothing
  • In the 3d View, select the Cube and then click on an empty region - Note that the Cube has been deselected which is wrong
  • In the keymap, go to {nav 3D View > 3D View (Global) > Selection} and disable the option Deselect On Nothing
  • In the 3d View, select the Cube and then click on an empty region - Note that the Cube has not been deselected which is correct.

Testing the Selection Fallback Shortcut:

  • Re-enable all Deselect On Nothing options and now disable the option located in {nav 3D View > Object Mode > 3D View Tool: Tweak (fallback) > Selection}
  • In the 3D View, activate a tool other than the selection tool (so the selection fallback will be used)
  • select the Cube and then click on an empty region - Note that the Cube has been deselected which is wrong
    Repeat the last two steps of the selection test with the tool to get the expected result.
**System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.14760 Core Profile Context 20.45.37.01 27.20.14537.1001 **Blender Version** Broken: 2.83, 3.2.0 Worked: Apparently never **Short description of error** In the left-click selection settings, considering only `Object Mode` in the keymap, there are currently 3 places setting the {key LMB} selection shortcut: 1. {nav 3D View > 3D View (Global) > Selection} 2. {nav 3D View > Object Mode > 3D View Tool: Tweak > Selection} 3. {nav 3D View > Object Mode > 3D View Tool: Tweak (fallback) > Selection} Respectively each of them can be tested by pressing {key LMB} in the `3D View` under the following conditions: 1. Always active 2. Active when `Tweak Selection Tool` is enabled (between selection tools) 3. Active when fallback selection is `Tweak` and the `Selection Tool` is not enabled The problem is that, in the cases `2` and `3`, the key item of `1` is also mapped resulting in `view3d.select` being called 2 times (since this operator is pass though). This can be a problem for users editing the settings as they need to make sure the properties of both calls are "compatible". NOTE: for undo, with the default settings, this is not a problem as an undo step is only added when something changes. **Exact steps for others to reproduce the error** - Make sure to use keymap with LMB selection **Testing the Selection Tool Shortcut:** - In the 3D view, activate the `Tweak` selection tool - In the keymap, go to {nav 3D View > Object Mode > 3D View Tool: Tweak > Selection} and disable the option `Deselect On Nothing` - In the 3d View, select the Cube and then click on an empty region - Note that the Cube has been deselected which is wrong - In the keymap, go to {nav 3D View > 3D View (Global) > Selection} and disable the option `Deselect On Nothing` - In the 3d View, select the Cube and then click on an empty region - Note that the Cube has **not** been deselected which is correct. **Testing the Selection Fallback Shortcut:** - Re-enable all `Deselect On Nothing` options and now disable the option located in {nav 3D View > Object Mode > 3D View Tool: Tweak (fallback) > Selection} - In the 3D View, activate a tool other than the selection tool (so the selection fallback will be used) - select the Cube and then click on an empty region - Note that the Cube has been deselected which is wrong Repeat the last two steps of the selection test with the tool to get the expected result.
Author
Member

Added subscriber: @mano-wii

Added subscriber: @mano-wii

#95504 was marked as duplicate of this issue

#95504 was marked as duplicate of this issue

#95349 was marked as duplicate of this issue

#95349 was marked as duplicate of this issue
Author
Member

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

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

Added subscribers: @tiles, @ideasman42, @PratikPB2123

Added subscribers: @tiles, @ideasman42, @PratikPB2123
Author
Member

Added subscriber: @HappyOtter

Added subscriber: @HappyOtter

@mano-wii would you be able to check if this is still an issue? I'm not able to redo the double selection.

  • tested with 2.93.4 & current master 7f733e294d5485178df800685c69cc15547ee73c.

Used the arguments: --factory-startup --log "wm.operator" --log-level 1 to show operators being called.

I could only get a single selection call to be made with the tweak tool accessed as a fallback the primary tool.

Followed the exact steps, adjusting the key-map etc.

@mano-wii would you be able to check if this is still an issue? I'm not able to redo the double selection. - tested with `2.93.4` & current master `7f733e294d5485178df800685c69cc15547ee73c`. Used the arguments: `--factory-startup --log "wm.operator" --log-level 1` to show operators being called. I could only get a single selection call to be made with the tweak tool accessed as a fallback the primary tool. *Followed the exact steps, adjusting the key-map etc.*
Author
Member

Still an issue.
Here a GIF showing the Deselect On Nothing option still taking effect:
GIF.gif

And this is what appears on the console with the arguments given:

INFO (wm.operator): D:\BlenderDev\blender\source\blender\windowmanager\intern\wm_operators.c:807 operator_last_properties_init_impl: loading previous properties for 'VIEW3D_OT_select'
INFO (wm.operator): D:\BlenderDev\blender\source\blender\windowmanager\intern\wm_event_system.cc:968 wm_operator_reports: bpy.ops.view3d.select(deselect_all=True, location=(329, 522))
INFO (wm.operator): D:\BlenderDev\blender\source\blender\windowmanager\intern\wm_operators.c:862 WM_operator_last_properties_store: storing properties for 'VIEW3D_OT_select'
Still an issue. Here a GIF showing the `Deselect On Nothing` option still taking effect: ![GIF.gif](https://archive.blender.org/developer/F13370705/GIF.gif) And this is what appears on the console with the arguments given: ``` INFO (wm.operator): D:\BlenderDev\blender\source\blender\windowmanager\intern\wm_operators.c:807 operator_last_properties_init_impl: loading previous properties for 'VIEW3D_OT_select' INFO (wm.operator): D:\BlenderDev\blender\source\blender\windowmanager\intern\wm_event_system.cc:968 wm_operator_reports: bpy.ops.view3d.select(deselect_all=True, location=(329, 522)) INFO (wm.operator): D:\BlenderDev\blender\source\blender\windowmanager\intern\wm_operators.c:862 WM_operator_last_properties_store: storing properties for 'VIEW3D_OT_select' ```
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:22:15 +01: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
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#95452
No description provided.