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:
authorHans Goudey <h.goudey@me.com>2021-10-21 20:50:55 +0300
committerHans Goudey <h.goudey@me.com>2021-10-21 20:52:08 +0300
commit3858bf5c6fb4b40f6dc09312372d79e797da3750 (patch)
tree810d4f34d8e9a2fcf74fa7a2f42d8aca5cc13963 /source/blender/editors/space_node/node_geometry_attribute_search.cc
parent7b9319adf90e1742873213abbcd9293c3c4c3749 (diff)
Cleanup: Use common define for menu separator arrow
Diffstat (limited to 'source/blender/editors/space_node/node_geometry_attribute_search.cc')
-rw-r--r--source/blender/editors/space_node/node_geometry_attribute_search.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/editors/space_node/node_geometry_attribute_search.cc b/source/blender/editors/space_node/node_geometry_attribute_search.cc
index 411719cf6c0..a69109db69c 100644
--- a/source/blender/editors/space_node/node_geometry_attribute_search.cc
+++ b/source/blender/editors/space_node/node_geometry_attribute_search.cc
@@ -74,14 +74,11 @@ static StringRef attribute_domain_string(const AttributeDomain domain)
return StringRef(IFACE_(name));
}
-/* Unicode arrow. */
-#define MENU_SEP "\xe2\x96\xb6"
-
static bool attribute_search_item_add(uiSearchItems *items, const GeometryAttributeInfo &item)
{
const StringRef data_type_name = attribute_data_type_string(item.data_type);
const StringRef domain_name = attribute_domain_string(item.domain);
- std::string search_item_text = domain_name + " " + MENU_SEP + item.name + UI_SEP_CHAR +
+ std::string search_item_text = domain_name + " " + UI_MENU_ARROW_SEP + item.name + UI_SEP_CHAR +
data_type_name;
return UI_search_item_add(
@@ -198,7 +195,7 @@ void node_geometry_add_attribute_search_button(const bContext *UNUSED(C),
AttributeSearchData, {node_tree, node, (bNodeSocket *)socket_ptr->data});
UI_but_func_search_set_results_are_suggestions(but, true);
- UI_but_func_search_set_sep_string(but, MENU_SEP);
+ UI_but_func_search_set_sep_string(but, UI_MENU_ARROW_SEP);
UI_but_func_search_set(but,
nullptr,
attribute_search_update_fn,