Support expanded operator menus in the right click button context menu #71702

Open
opened 2019-11-20 15:21:15 +01:00 by Vas · 4 comments

Edit, made this a TODO, since support for these kinds of buttons has not been added.

Currently menu items defined by uiItemMenuEnumO_ptr don't have right click menus, this is because they reference the operator from a MenuItemLevel struct.


System Information
Operating system: Windows-10-10.0.14393 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.86

Blender Version
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-19 17:28, hash: 9ca2cbdcea
Worked: (optional)

Short description of error
2019-11-20-14-14-07.gif
After noticing that right click context menu was a bit broken on some menu items, I proceeded to test it on every single drop down menu in Blender and came up with this list below.
All the items here fail to display right click context menu, instead it simply opens the window the same way as a left click

3D Viewport
     Object mode
          Select
                Select All by Type...
                Select Grouped
                Select Linked

          Add
                Grease Pencil
                Empty
                Force Field

          Object
                Set Origin
                Convert to

     Edit mode
          Mesh
                Sort Elements...
                Separate

UV Editor
          UV
                Snap to Pixels

Video Sequencer
     Sequencer
          View
                Waveform Displaying
          Select
                Grouped
          Marker
                Duplicate Marker to Scene
          Add
                Fade

Dope Sheet
     Dope Sheet (and all other editor subtypes)
          Marker
                Duplicate Marker to Scene
          Channel
                Toggle Channel Setting
                Enable Channel Setting
                Disable Channel Setting
                Extrapolation Mode
                Move
          Key
                Snap
                Mirror
                Keyframe Type
                Handle Type
                Interpolation Mode
Timeline
          Marker
                Duplicate Marker to Scene

Graph Editor/Drivers
          Marker
                Duplicate Marker to Scene
          Channel
                Toggle Channel Setting
                Enable Channel Setting
                Disable Channel Setting
                Extrapolation Mode
                Move
          Key
                Snap
                Mirror
                Insert Keyframes
                Add F-Curve Modifier
                Handle Type
                Interpolation Mode

Non Linear Animation
          Marker
                Duplicate Marker to Scene
          Edit
                Snap
                Track Ordering...
File Browser
          View
                Display Size
                Recursion

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

Edit, made this a TODO, since support for these kinds of buttons has not been added. Currently menu items defined by `uiItemMenuEnumO_ptr` don't have right click menus, this is because they reference the operator from a `MenuItemLevel` struct. ---- **System Information** Operating system: Windows-10-10.0.14393 64 Bits Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.86 **Blender Version** Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-19 17:28, hash: `9ca2cbdcea` Worked: (optional) **Short description of error** ![2019-11-20-14-14-07.gif](https://archive.blender.org/developer/F8148006/2019-11-20-14-14-07.gif) After noticing that right click context menu was a bit broken on some menu items, I proceeded to test it on every single drop down menu in Blender and came up with this list below. All the items here fail to display right click context menu, instead it simply opens the window the same way as a left click 3D Viewport      Object mode           Select                 Select All by Type...                 Select Grouped                 Select Linked           Add                 Grease Pencil                 Empty                 Force Field           Object                 Set Origin                 Convert to      Edit mode           Mesh                 Sort Elements...                 Separate UV Editor           UV                 Snap to Pixels Video Sequencer      Sequencer           View                 Waveform Displaying           Select                 Grouped           Marker                 Duplicate Marker to Scene           Add                 Fade Dope Sheet      Dope Sheet (and all other editor subtypes)           Marker                 Duplicate Marker to Scene           Channel                 Toggle Channel Setting                 Enable Channel Setting                 Disable Channel Setting                 Extrapolation Mode                 Move           Key                 Snap                 Mirror                 Keyframe Type                 Handle Type                 Interpolation Mode Timeline           Marker                 Duplicate Marker to Scene Graph Editor/Drivers           Marker                 Duplicate Marker to Scene           Channel                 Toggle Channel Setting                 Enable Channel Setting                 Disable Channel Setting                 Extrapolation Mode                 Move           Key                 Snap                 Mirror                 Insert Keyframes                 Add F-Curve Modifier                 Handle Type                 Interpolation Mode Non Linear Animation           Marker                 Duplicate Marker to Scene           Edit                 Snap                 Track Ordering... File Browser           View                 Display Size                 Recursion **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)]
Author

Added subscriber: @Alumx

Added subscriber: @Alumx

Added subscriber: @bent

Added subscriber: @bent

Added subscriber: @ChristopherAnderssarian

Added subscriber: @ChristopherAnderssarian
Campbell Barton changed title from Right click context menu is broken on >45 different buttons to Support expanded enum menus in the context menu 2019-11-21 17:09:46 +01:00
Campbell Barton changed title from Support expanded enum menus in the context menu to Support expanded operator menus in the right click button context menu 2019-11-21 17:10:30 +01:00

Added subscriber: @DuarteRamos

Added subscriber: @DuarteRamos
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:25:04 +01: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
4 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#71702
No description provided.