diff options
author | Hans Goudey <h.goudey@me.com> | 2022-10-12 20:31:38 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-10-12 20:31:38 +0300 |
commit | a1bc05b200a6bf8fae5a64609d93f650de08d8ce (patch) | |
tree | 003a4340562973243402cd169e63eed762b3958e /source/blender/editors/space_node/add_node_search.cc | |
parent | 0d25169dc5181e2737599582f3009751d84356ca (diff) |
Nodes: Add "Legacy" to legacy node UI names, skip in search
Currently there is no way to tell that these node types are deprecated
in the UI. This commit adds "(Legacy)" to the end of the names.
It also makes it simple to skip these in the various node searches
more automatically than before.
Fixes T101700
Differential Revision: https://developer.blender.org/D16223
Diffstat (limited to 'source/blender/editors/space_node/add_node_search.cc')
-rw-r--r-- | source/blender/editors/space_node/add_node_search.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/add_node_search.cc b/source/blender/editors/space_node/add_node_search.cc index 819f0abac7c..28e18c20f46 100644 --- a/source/blender/editors/space_node/add_node_search.cc +++ b/source/blender/editors/space_node/add_node_search.cc @@ -182,6 +182,9 @@ static void gather_add_node_operations(const bContext &C, /* Skip the empty group type. */ continue; } + if (StringRefNull(node_type->ui_name).endswith("(Legacy)")) { + continue; + } AddNodeItem item{}; item.ui_name = IFACE_(node_type->ui_name); |