Fix #122526: Pie menu executes the active as well as the shortcut button #122567

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:122526 into blender-v4.2-release 2024-06-06 11:09:49 +02:00
Member

A bit on shaky ground here, but it looks like we actually dont want to
execute the hovered buttons value/op if we chose another item in the pie
menu. This can be achieved by using the onfree arg to
button_activate_exit called on the active(hovered) button.

Not sure if this is the correct solution tbh (but maybe it demonstrates
where the bug of #122526 can be located).
I have tested pie menus with this patch and they seems to behave
normally (even nested ones).

A bit on shaky ground here, but it looks like we actually dont want to execute the hovered buttons value/op if we chose another item in the pie menu. This can be achieved by using the **onfree** arg to `button_activate_exit` called on the active(hovered) button. Not sure if this is the correct solution tbh (but maybe it demonstrates where the bug of #122526 can be located). I have tested pie menus with this patch and they seems to behave normally (even nested ones).
Philipp Oeser added this to the Module: User Interface project 2024-05-31 18:25:35 +02:00
Philipp Oeser requested review from Julian Eisel 2024-05-31 18:25:44 +02:00
Philipp Oeser requested review from Campbell Barton 2024-05-31 18:25:50 +02:00
Campbell Barton approved these changes 2024-06-05 09:00:17 +02:00
Julian Eisel approved these changes 2024-06-05 14:11:52 +02:00
Philipp Oeser changed target branch from main to blender-v4.2-release 2024-06-06 10:30:43 +02:00
Philipp Oeser force-pushed 122526 from f8e42e86fa to d42615f9f5 2024-06-06 10:48:03 +02:00 Compare
Philipp Oeser merged commit 9b1d81eec2 into blender-v4.2-release 2024-06-06 11:09:49 +02:00
Philipp Oeser deleted branch 122526 2024-06-06 11:09:56 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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 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#122567
No description provided.