UI: Allow Configuration of Some Operator Confirmations #107765

Merged
Harley Acheson merged 1 commits from Harley/blender:OperatorConfig into main 2023-05-16 20:03:53 +02:00
Member

Allow users to disable/enable 14 operator confirmations in the Keymap
Editor.


Requested by the Modelling Module. The following 14 operators are currently set to always confirm. This PR allows the confirmations to be enabled/disabled in the keymap like many other operators. This affects the following:

  • ANIM_OT_keyframe_clear_v3d - "Remove all keyframe animation for selected objects"
  • ANIM_OT_keyframe_delete_v3d - "Remove keyframes on current frame for selected objects and bones"
  • ARMATURE_OT_delete - "Remove selected bones from the armature"
  • ARMATURE_OT_separate - "Isolate selected bones into a separate armature"
  • CURVE_OT_separate - "Separate selected points from connected unselected points into a new object"
  • MASK_OT_delete - "Delete selected control points or splines"
  • MBALL_OT_delete_metaelems - "Delete selected metaball element(s)"
  • OBJECT_OT_vertex_parent_set - "Parent selected objects to the selected vertices"
  • OBJECT_OT_parent_no_inverse_set - "Set the object's parenting without setting the inverse parent correction"
  • CLIP_OT_graph_delete_curve - "Delete track corresponding to the selected curve"
  • CLIP_OT_delete_track - "Delete selected tracks"
  • CLIP_OT_delete_marker - "Delete marker for current frame from selected tracks"
  • GRAPH_OT_bake - "Bake selected F-Curves to a set of sampled points defining a similar curve"
  • NLA_OT_make_single_user - "Ensure that each action is only used once in the set of strips selected"

Once applied you go to Edit / Preferences / Keymap and for any key binding with the above you should see a "Confirm" checkbox (on by default) that you can optionally turn off. In the following example the operator "CLIP_OT_delete_marker", shown in the keymap editor as "clip.delete_marker", can have Shift-X give a confirmation while Shift-Delete will not.

MarkerDelete.png

Allow users to disable/enable 14 operator confirmations in the Keymap Editor. --- Requested by the Modelling Module. The following 14 operators are currently set to *always* confirm. This PR allows the confirmations to be enabled/disabled in the keymap like many other operators. This affects the following: * ANIM_OT_keyframe_clear_v3d - "Remove all keyframe animation for selected objects" * ANIM_OT_keyframe_delete_v3d - "Remove keyframes on current frame for selected objects and bones" * ARMATURE_OT_delete - "Remove selected bones from the armature" * ARMATURE_OT_separate - "Isolate selected bones into a separate armature" * CURVE_OT_separate - "Separate selected points from connected unselected points into a new object" * MASK_OT_delete - "Delete selected control points or splines" * MBALL_OT_delete_metaelems - "Delete selected metaball element(s)" * OBJECT_OT_vertex_parent_set - "Parent selected objects to the selected vertices" * OBJECT_OT_parent_no_inverse_set - "Set the object's parenting without setting the inverse parent correction" * CLIP_OT_graph_delete_curve - "Delete track corresponding to the selected curve" * CLIP_OT_delete_track - "Delete selected tracks" * CLIP_OT_delete_marker - "Delete marker for current frame from selected tracks" * GRAPH_OT_bake - "Bake selected F-Curves to a set of sampled points defining a similar curve" * NLA_OT_make_single_user - "Ensure that each action is only used once in the set of strips selected" Once applied you go to Edit / Preferences / Keymap and for any key binding with the above you should see a "Confirm" checkbox (on by default) that you can optionally turn off. In the following example the operator "CLIP_OT_delete_marker", shown in the keymap editor as "clip.delete_marker", can have Shift-X give a confirmation while Shift-Delete will not. ![MarkerDelete.png](/attachments/ea6c6d61-9eeb-4a3d-8c4c-ab4eb295552a)
Harley Acheson added 1 commit 2023-05-09 00:43:05 +02:00
5d34f05908 UI: Allow Configuration of Some Operator Confirmations
Allow users to disable/enable 14 operator confirmations in the Keymap
Editor.
Harley Acheson requested review from Julien Kaspar 2023-05-09 00:43:30 +02:00
Julien Kaspar approved these changes 2023-05-12 17:33:58 +02:00
Julien Kaspar left a comment
Member

Behaves all like expected to me 👍

Behaves all like expected to me :+1:
Harley Acheson requested review from Campbell Barton 2023-05-12 18:02:11 +02:00
Author
Member

@ideasman42 - Can you think of any downsides to this?

@ideasman42 - Can you think of any downsides to this?
Campbell Barton approved these changes 2023-05-16 07:37:32 +02:00
Harley Acheson merged commit 6ae44c4770 into main 2023-05-16 20:03:53 +02:00
Harley Acheson deleted branch OperatorConfig 2023-05-16 20:03:54 +02:00
Howard Trickey referenced this issue from a commit 2023-05-29 02:51:39 +02: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#107765
No description provided.