Pie menu: PIE_OT_SetObjectModePie() in space_view3d_pie_menus is not adding an undo step when executed #86707
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#86707
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Win10 64
Graphics card: GTX1070
Blender Version
Broken:
2.93 Alpha d7fb38ddd4af (and likely before)
Short description of error
PIE_OT_SetObjectModePie() in space_view3d_pie_menus is not adding an undo step when executed. For example used by gpencil mode switching and armature pose/object mode switching. This leads to the annoying behavior where if you switch a mode using a pie menu, do something (for example sculpt) and undo directly after, the mode switch is undone as well.
I fixed it temporarily by adding 'UNDO' to the operator bl_options but there's probably a nicer way since this makes the undo history say "Set the object interactive mode" instead of showing the actual mode.
Exact steps for others to reproduce the error
From startup blend: (assuming pie menus are enabled)
Expected:
Added subscriber: @cyaoeu
Added subscriber: @OmarEmaraDev
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
An undo step is only necessary if the ID data are changed, so this is not considered a bug, but I will let the developer make a more informed decision.