Add Ctrl-Wheel support to popovers
Open, NormalPublic

Description

Currently, popovers don't support ctrl-wheel interaction for switching the main enum. We already have a special enum that sets the icon in the popover, so we should be able to use that same enum to switch the item.

An example where this is useful, is Transform Orientation & Snapping in the 3D Viewport.

Details

Type
To Do
William Reynish (billreynish) triaged this task as Normal priority.

Hey, I'm a new Blender developer and I'd like to look into this. Would you be able to suggest a good place to start? What folder might the related code be located in?

Thanks.

This is a more complicated task, I would advise to start with something simpler if you're not familiar with the Blender code yet.

Right now these enums in popovers are kind of faked, by making the popover buttons appear like enum buttons even though they aren't. The proper solution is probably to make these enum buttons, but with a custom panel specified to open when clicking to open the menu, instead of the usual enum menu. Then Ctrl+Wheel will work automatically, as well as tooltips and right click menus.

The main changes would likely be in rna_ui_api.c, interface_layout.c, and interface_handlers.c.

This is a more complicated task, I would advise to start with something simpler if you're not familiar with the Blender code yet.

Is there a specific task you think might be good to start with?