d1634b2a4aae2e4b7628a4aa738f29653ac162b5
The goal is to support better search experience in the cases where we want to explicitly influence the ordering instead of relying only on general heuristics. We used to support this already at some point I think, but not anymore since we started using menu-search. The implementation is fairly straight forward. It mainly just forwards the search weight from the menu definition to the search code through various required steps. The main annoying thing is that changing the signature of e.g. `uiItemFullO_ptr` is fairly involved. Even using default parameters for these functions is a bit annoying and becomes fairly unreadable and error-prone on the call-site. For now, I worked around this by storing the search weight on the `uiLayout` and to copy it to the `uiBut` from there. That seems preferable until we have a better solution for adding parameters to all the `uiItem*` functions. Pull Request: https://projects.blender.org/blender/blender/pulls/120572
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
