The X or Delete button does not work in the outliner (Blender File) #93401

Open
opened 2021-11-26 11:39:29 +01:00 by Oxicid · 11 comments

System Information
Operating system: Windows-10-10.0.17763-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.68

Blender Version
Broken: version: 2.93.6, branch: master, commit date: 2021-11-16 14:54, hash: c842a90e2f
Worked: (newest version of Blender that worked as expected)

Short description of error
[The X or Delete button does not work in the outliner (Blender File)]

Exact steps for others to reproduce the error

  • Open default startup file
  • {nav Outliner >Display Mode > Blender File}
  • In outliner {nav Brush > RMB > Delete > RMB > Assign Shortcut > X}
  • Attempt to delete any brush with hotkey (will not delete brush)
  • Change hotkey (eg {key Shift X}) and now attempt to delete brush with hotkey

when you press X items in:

Broken Brushes, Cameras, Images, Lights, Line Styles, Materials, Meshes, Palettes, Workspaces, Worlds
worked Collections, Objects, Scenes

X Button.png

Delete X Button.blend.py

{F12271213}]

**System Information** Operating system: Windows-10-10.0.17763-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.68 **Blender Version** Broken: version: 2.93.6, branch: master, commit date: 2021-11-16 14:54, hash: `c842a90e2f` Worked: (newest version of Blender that worked as expected) **Short description of error** [The X or Delete button does not work in the outliner (Blender File)] **Exact steps for others to reproduce the error** - Open default startup file - {nav Outliner >Display Mode > Blender File} - In outliner {nav Brush > RMB > Delete > RMB > Assign Shortcut > X} - Attempt to delete any brush with hotkey (will not delete brush) - Change hotkey (eg {key Shift X}) and now attempt to delete brush with hotkey when you press X items in: | Broken | Brushes, Cameras, Images, Lights, Line Styles, Materials, Meshes, Palettes, Workspaces, Worlds | | -- | -- | | worked | Collections, Objects, Scenes | ![X Button.png](https://archive.blender.org/developer/F12271212/X_Button.png) [Delete _X_ Button.blend.py](https://archive.blender.org/developer/F12271211/Delete__X__Button.blend.py) {[F12271213](https://archive.blender.org/developer/F12271213/Delete__X__Button.blend)}]
Author

Added subscriber: @Oxicid

Added subscriber: @Oxicid

#94660 was marked as duplicate of this issue

#94660 was marked as duplicate of this issue
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

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

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

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Think this has caused confusion before (but it is still working somewhat as intended).

Underlying issue is that Delete is not the same for all IDs.

Collections and object have a unified delete operator since 26c0ca3aa7: Outliner_OT_delete
The context menu still does this differently (see OUTLINER_IDOP_DELETE , id_delete_fn).
The X icon is not too helpful here (since it implies that might be a shortcut).

If you assign {key X} to the context menu Delete, this conflicts with the {key X} that is already assigned to Outliner_OT_delete.
And you still end up calling Outliner_OT_delete [which does not work on anything but collections and objects].
I never really fully understood priorities in shortcuts, so assigning a shortcut that is already taken elsewhere might work, often times it does not though (and the "original" operator is still called).

So, while the order/priorities of shortcuts is not entirely clear to me, I think this report just boils down to the fact that we have conflicting shortcuts here.
To fully classify this, I guess we still need input from #user_interface devs (but to me, this does not look like a bug).

Think this has caused confusion before (but it is still working somewhat as intended). Underlying issue is that `Delete` is not the same for all IDs. Collections and object have a unified delete operator since 26c0ca3aa7: `Outliner_OT_delete` The context menu still does this differently (see `OUTLINER_IDOP_DELETE` , `id_delete_fn`). The `X` icon is not too helpful here (since it implies that might be a shortcut). If you assign {key X} to the context menu `Delete`, this conflicts with the {key X} that is already assigned to `Outliner_OT_delete`. And you still end up calling `Outliner_OT_delete` [which does not work on anything but collections and objects]. I never really fully understood priorities in shortcuts, so assigning a shortcut that is already taken elsewhere might work, often times it does not though (and the "original" operator is still called). So, while the order/priorities of shortcuts is not entirely clear to me, I think this report just boils down to the fact that we have conflicting shortcuts here. To fully classify this, I guess we still need input from #user_interface devs (but to me, this does not look like a bug).
Member

Added subscriber: @Rawalanche

Added subscriber: @Rawalanche
Contributor

So if this is not a bug, then what is the proper way to assign delete operator to any keyboard shortcut which would work in Blender File mode?

So if this is not a bug, then what is the proper way to assign delete operator to any keyboard shortcut which would work in Blender File mode?
Member

{key Shift X} will work

{key Shift X} will work
Contributor

In #93401#1283314, @lichtwerk wrote:
{key Shift X} will work

Ah, yes, it does. Confusingly, though, inability to assign same keyboard shortcut to conceptually the same operation should be considered a bug. Otherwise, by the same logic, users should not be able to use Delete key to both delete objects in object mode and mesh elements in mesh edit mode, since both are different operators yet both of these are called in the different modes of the same editor.

> In #93401#1283314, @lichtwerk wrote: > {key Shift X} will work Ah, yes, it does. Confusingly, though, inability to assign same keyboard shortcut to conceptually the same operation should be considered a bug. Otherwise, by the same logic, users should not be able to use Delete key to both delete objects in object mode and mesh elements in mesh edit mode, since both are different operators yet both of these are called in the different modes of the same editor.
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:22:42 +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
5 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#93401
No description provided.