diff options
author | Julian Eisel <julian@blender.org> | 2021-06-29 18:20:33 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-06-29 19:20:56 +0300 |
commit | 2ff714269e53f9a744242cd6c039ec65a47ec7ec (patch) | |
tree | 9c045b9cf56f50a86b7af87bc56a5495813f2e70 /intern | |
parent | 63aa6dd845ebdb0f62c95a720e82e554c0208d95 (diff) |
UI: Support setting operator properties for `UILayout.operator_menu_enum()`
`UILayout.operator_menu_enum()` now returns the operator properties, just like
`UILayout.operator()`. This makes it possible to set options for the operator
displayed in the menu. In C it can be done through the new
`uiItemMenuEnumFullO()` or `uiItemMenuEnumFullO_ptr()`.
It's reasonable to have this, probably just a small thing never bothered to
add. D10912 could use it, the following comment can be addressed now too:
https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/space_nla/nla_buttons.c$583-586
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions