[Bf-blender-cvs] [c07b9e23c80] master: UI: Add tooltips to the select tool modes
William Reynish
noreply at git.blender.org
Mon May 6 16:47:15 CEST 2019
Commit: c07b9e23c803b6c864a34b8bdf1955bcd83ba00b
Author: William Reynish
Date: Mon May 6 16:47:13 2019 +0200
Branches: master
https://developer.blender.org/rBc07b9e23c803b6c864a34b8bdf1955bcd83ba00b
UI: Add tooltips to the select tool modes
Especially needed now that they are just icons
===================================================================
M source/blender/windowmanager/intern/wm_operator_props.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_operator_props.c b/source/blender/windowmanager/intern/wm_operator_props.c
index 735b9484392..db1f9a32935 100644
--- a/source/blender/windowmanager/intern/wm_operator_props.c
+++ b/source/blender/windowmanager/intern/wm_operator_props.c
@@ -344,11 +344,11 @@ void WM_operator_properties_gesture_box(wmOperatorType *ot)
void WM_operator_properties_select_operation(wmOperatorType *ot)
{
static const EnumPropertyItem select_mode_items[] = {
- {SEL_OP_SET, "SET", ICON_SELECT_SET, "New", ""},
- {SEL_OP_ADD, "ADD", ICON_SELECT_EXTEND, "Add", ""},
- {SEL_OP_SUB, "SUB", ICON_SELECT_SUBTRACT, "Subtract", ""},
- {SEL_OP_XOR, "XOR", ICON_SELECT_DIFFERENCE, "Difference", ""},
- {SEL_OP_AND, "AND", ICON_SELECT_INTERSECT, "Intersect", ""},
+ {SEL_OP_SET, "SET", ICON_SELECT_SET, "Set", "Set a new selection"},
+ {SEL_OP_ADD, "ADD", ICON_SELECT_EXTEND, "Extend", "Extend existing selection"},
+ {SEL_OP_SUB, "SUB", ICON_SELECT_SUBTRACT, "Subtract", "Subtract existing selection"},
+ {SEL_OP_XOR, "XOR", ICON_SELECT_DIFFERENCE, "Difference", "Inverts existing selection"},
+ {SEL_OP_AND, "AND", ICON_SELECT_INTERSECT, "Intersect", "Intersect existing selection"},
{0, NULL, 0, NULL, NULL},
};
PropertyRNA *prop = RNA_def_enum(ot->srna, "mode", select_mode_items, SEL_OP_SET, "Mode", "");
@@ -359,9 +359,9 @@ void WM_operator_properties_select_operation(wmOperatorType *ot)
void WM_operator_properties_select_operation_simple(wmOperatorType *ot)
{
static const EnumPropertyItem select_mode_items[] = {
- {SEL_OP_SET, "SET", ICON_SELECT_SET, "New", ""},
- {SEL_OP_ADD, "ADD", ICON_SELECT_EXTEND, "Add", ""},
- {SEL_OP_SUB, "SUB", ICON_SELECT_SUBTRACT, "Subtract", ""},
+ {SEL_OP_SET, "SET", ICON_SELECT_SET, "Set", "Set a new selection"},
+ {SEL_OP_ADD, "ADD", ICON_SELECT_EXTEND, "Extend", "Extend existing selection"},
+ {SEL_OP_SUB, "SUB", ICON_SELECT_SUBTRACT, "Subtract", "Subtract existing selection"},
{0, NULL, 0, NULL, NULL},
};
PropertyRNA *prop = RNA_def_enum(ot->srna, "mode", select_mode_items, SEL_OP_SET, "Mode", "");
More information about the Bf-blender-cvs
mailing list