UI: Region toggle pie when "Pie Menu on Drag" enabled #124594

Open
Nika Kutsniashvili wants to merge 2 commits from nickberckley/blender:region-drag into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Contributor

Issue:
In 4.0 new pie menu was introduced that toggles region elements, including new Asset Shelf. Currently it is set to N key and it can be used if you enable "Region Toggle Pie" in preferences. But downside is that once enabled user can't use N shortcut to quickly hide and show sidebar, which is muscle memory at this point. So current way introduces choice in which you either lose pie menu, or quick shortcut.

This patch adds "Pie Menu on Drag" support to Region Toggle Pie.
So if user has "Pie Menu on Drag" enabled in preferences they can press N for old toggle behavior, and click-drag to use new pie-menu. Works in every editor that has Region Toggle Pie.

(for those who are not familiar with "Pie Menu on Drag" feature, change it makes is that instead of toggling sidebar on tap of the button, it waits for the release)

PR also removes experimental "Region Toggle Pie" property in Preferences > Keymap.


Currently it's not working in Text Editor (where I intentionally didn't implement it, since it has different shortcuts), and in Asset Browser, because it uses different implementation for sidebar toggle that isn't covered by this. Let me know if I should implement this in those editors as well.

**Issue:** In 4.0 new pie menu was introduced that toggles region elements, including new Asset Shelf. Currently it is set to N key and it can be used if you enable "Region Toggle Pie" in preferences. But downside is that once enabled user can't use N shortcut to quickly hide and show sidebar, which is muscle memory at this point. So current way introduces choice in which you either lose pie menu, or quick shortcut. This patch adds "Pie Menu on Drag" support to Region Toggle Pie. So if user has "Pie Menu on Drag" enabled in preferences they can press N for old toggle behavior, and click-drag to use new pie-menu. Works in every editor that has Region Toggle Pie. (for those who are not familiar with "Pie Menu on Drag" feature, change it makes is that instead of toggling sidebar on tap of the button, it waits for the release) PR also removes experimental "Region Toggle Pie" property in Preferences > Keymap. <video src="/attachments/4de096ef-013b-4d20-ae4f-7664c31e8803" title="region-toggle-pie.mp4" controls></video> --- Currently it's not working in Text Editor (where I intentionally didn't implement it, since it has different shortcuts), and in Asset Browser, because it uses different implementation for sidebar toggle that isn't covered by this. Let me know if I should implement this in those editors as well.
Nika Kutsniashvili added 1 commit 2024-07-12 13:22:02 +02:00
Iliya Katushenock added this to the User Interface project 2024-07-12 13:23:22 +02:00
Nika Kutsniashvili added 1 commit 2024-07-12 13:24:52 +02:00
Nika Kutsniashvili changed title from Region toggle pie on drag to UI: Region toggle pie when "Pie Menu on Drag" enabled 2024-07-12 13:25:14 +02:00
Author
Contributor

I applied "make format" and it changed blender_default keymap file quite a bit (lists specifically), let me know if I should revert this and leave formatting as it was.

I applied "make format" and it changed blender_default keymap file quite a bit (lists specifically), let me know if I should revert this and leave formatting as it was.
Iliya Katushenock added the
Module
Python API
label 2024-07-12 13:36:12 +02:00
Member

I applied "make format" and it changed blender_default keymap file quite a bit (lists specifically), let me know if I should revert this and leave formatting as it was.

Don't mix format/cleanups in your PRs. Better to have a different PR just for formatting, and a clean one after with just your changes.

> I applied "make format" and it changed blender_default keymap file quite a bit (lists specifically), let me know if I should revert this and leave formatting as it was. Don't mix format/cleanups in your PRs. Better to have a different PR just for formatting, and a clean one after with just your changes.
Merge conflict checking is in progress. Try again in few moments.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u region-drag:nickberckley-region-drag
git checkout nickberckley-region-drag
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
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
Core
Module
Development Management
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
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 project
No Assignees
2 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#124594
No description provided.