Blender Git Loki

Git Commits -> Revision 2ff7142

Revision 2ff7142 by Julian Eisel (master)
June 29, 2021, 16:20 (GMT)
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

Commit Details:

Full Hash: 2ff714269e53f9a744242cd6c039ec65a47ec7ec
Parent Commit: 63aa6dd
Lines Changed: +66, -28

3 Modified Paths:

/source/blender/editors/include/UI_interface.h (+11, -3) (Diff)
/source/blender/editors/interface/interface_layout.c (+39, -15) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+16, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021