Pie menu with checkboxes (booleans) has dead-zones #112129

Closed
opened 2023-09-08 12:27:14 +02:00 by Dalai Felinto · 7 comments

Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-09-08 00:27, hash: 8d71e55d406d
Worked: Not sure, probably never.

Short description of error
Pie menus that have checkboxes present deadzones.

Exact steps for others to reproduce the error

  • Enabled Region Toggle Pie in the User Preferences: Keymap > Preferences
  • Use "N"
  • Note the ammount of deadzone

The red hatched zones are deadzones:
image

**Blender Version** Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-09-08 00:27, hash: `8d71e55d406d` Worked: Not sure, probably never. **Short description of error** Pie menus that have checkboxes present deadzones. **Exact steps for others to reproduce the error** * Enabled Region Toggle Pie in the User Preferences: `Keymap > Preferences` * Use "N" * Note the ammount of deadzone The red hatched zones are deadzones: ![image](/attachments/e3280eff-a988-4ddb-8110-7e0c76cda541)
142 KiB
Dalai Felinto added the
Module
User Interface
Priority
Normal
Status
Confirmed
Type
Bug
labels 2023-09-08 12:27:35 +02:00
Member

Can confirm. I think it's a bug of all pies that have gaps or "invisible items" (often used for sorting items properly).

See the blue indicator in the center, in the Shading pie (Z) with 4 items, the indicator is one quarter.

In the Region Toggle pie, the blue indicator is smaller, as if there were 8 items instead of the 4 visible ones.

Can confirm. I think it's a bug of all pies that have gaps or "invisible items" (often used for sorting items properly). See the blue indicator in the center, in the Shading pie (Z) with 4 items, the indicator is one quarter. In the Region Toggle pie, the blue indicator is smaller, as if there were 8 items instead of the 4 visible ones. <video src="/attachments/ff1ceb76-e912-4d1d-8931-b7d9e4333144" title="2023-09-08_14.41.47.mp4" controls loop></video>
Contributor

Found the problem, but i not sure if it is the correct way.

On the commit message of the code it says "Experimental" so maybe that's not the final form of it.

Also there's still is the Pivot Pie Menu bugging me, with just 6 slot filled, there is one that still has dead space around.

Found the problem, but i not sure if it is the correct way. On the commit message of the code it says "Experimental" so maybe that's not the final form of it. Also there's still is the Pivot Pie Menu bugging me, with just 6 slot filled, there is one that still has dead space around.
Harley Acheson self-assigned this 2023-09-09 23:57:56 +02:00
Member

OMG that took far too long to track down.

OMG that took far too long to track down.
Member

@DShot92

You found the correct place to fix this and I wish I had noticed your post because it would have saved me a lot of time.

Unfortunately, your proposed diff won't always work. There are 6 different types of regions this script can toggle, so although we are almost always seeing only four items there could be more. And this script seems to be doing special things with the first half of that 8-item list from the second half.

I'll post a PR for this that removes empty items from the two lists. I'm hoping to mention you in that PR and you can comment if you feel that it is not correct.

@DShot92 You found the correct place to fix this and I wish I had noticed your post because it would have saved me a lot of time. Unfortunately, your proposed diff won't always work. There are 6 different types of regions this script can toggle, so although we are almost always seeing only four items there could be more. And this script seems to be doing special things with the first half of that 8-item list from the second half. I'll post a PR for this that removes empty items from the two lists. I'm hoping to mention you in that PR and you can comment if you feel that it is not correct.

Not sure what the fix is or will be, but. I often hit the WRONG pie menu item, because of that mid-way point / "snapping".

Would one of these options help solve that? Or is that another issue/related to this?

image

Not sure what the fix is or will be, but. I often hit the WRONG pie menu item, because of that mid-way point / "snapping". Would one of these options help solve that? Or is that another issue/related to this? ![image](/attachments/3b776f1b-8e16-407d-bbd6-8c713f2b0544)
Contributor

Yes, my first try wat to set

item = [[] for _ in range(len(region_by_type))]

But after a second look it seems like this is a completely custom pie menu only for "Region Toggle".

I do not know the status of this button, as in the commit of that code the message says it's experimental, so maybe that' just a quick way to test it out.
Don't know.

And yes i feel the pain!

Yes, my first try wat to set `item = [[] for _ in range(len(region_by_type))]` But after a second look it seems like this is a completely custom pie menu only for "Region Toggle". I do not know the status of this button, as in the commit of that code the message says it's experimental, so maybe that' just a quick way to test it out. Don't know. And yes i feel the pain!
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-09-10 18:26:37 +02:00

Empty items are needed to ensure the regions directions match the pie menu items (resolved 8167ad746c).

Submitted a separate PR !112311 to avoid the dead zones altogether.

Empty items are needed to ensure the regions directions match the pie menu items (resolved 8167ad746c19316eb6adada2b6a0872dd3a72311). Submitted a separate PR !112311 to avoid the dead zones altogether.
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
6 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#112129
No description provided.