Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2021-09-29 04:36:15 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-09-29 04:36:15 +0300
commitd1220f795f3b81d2b1a901fd4980f9446ce07431 (patch)
tree6a41a080184c505b31f3d4db15d39530050a0a6f
parent8e40bb2dea005a691160b48c94087868a8d21548 (diff)
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
-rw-r--r--source/blender/editors/space_node/drawnode.cc2
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/space_node/drawnode.cc b/source/blender/editors/space_node/drawnode.cc
index 500e23e5451..b4a9b90434c 100644
--- a/source/blender/editors/space_node/drawnode.cc
+++ b/source/blender/editors/space_node/drawnode.cc
@@ -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)
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index b5a42babc81..8fb55d37375 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -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},
};