UI: Update Levels Nodes

- Instead of making the enum expanded leave it in menu form.
- Use full words instead of letters.

Differential Revision: https://developer.blender.org/D12686
This commit is contained in:
Aaron Carlisle 2021-09-28 21:36:15 -04:00
parent 8e40bb2dea
commit d1220f795f
2 changed files with 6 additions and 6 deletions

View File

@ -2079,7 +2079,7 @@ static void node_composit_buts_premulkey(uiLayout *layout, bContext *UNUSED(C),
static void node_composit_buts_view_levels(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
{
uiItemR(layout, ptr, "channel", DEFAULT_FLAGS | UI_ITEM_R_EXPAND, nullptr, ICON_NONE);
uiItemR(layout, ptr, "channel", DEFAULT_FLAGS, "", ICON_NONE);
}
static void node_composit_buts_colorbalance(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)

View File

@ -6545,11 +6545,11 @@ static void def_cmp_levels(StructRNA *srna)
PropertyRNA *prop;
static const EnumPropertyItem channel_items[] = {
{1, "COMBINED_RGB", 0, "C", "Combined RGB"},
{2, "RED", 0, "R", "Red Channel"},
{3, "GREEN", 0, "G", "Green Channel"},
{4, "BLUE", 0, "B", "Blue Channel"},
{5, "LUMINANCE", 0, "L", "Luminance Channel"},
{1, "COMBINED_RGB", 0, "Combined", "Combined RGB"},
{2, "RED", 0, "Red", "Red Channel"},
{3, "GREEN", 0, "Green", "Green Channel"},
{4, "BLUE", 0, "Blue", "Blue Channel"},
{5, "LUMINANCE", 0, "Luminance", "Luminance Channel"},
{0, NULL, 0, NULL, NULL},
};