From be3ab1999d951d82da0c5980a07dcb76600809e5 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Tue, 4 Jul 2023 12:05:27 +0200 Subject: [PATCH] UI: Use search popup to select a new ID for "Remap Users" While "Remap Users" is quite useful for productions, there would be way too many IDs in production files for the UI to deal with, rendering the operator useless from the UI. Instead of a huge list of IDs to scroll through, use a simple search box. --- source/blender/editors/space_outliner/outliner_edit.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/space_outliner/outliner_edit.cc b/source/blender/editors/space_outliner/outliner_edit.cc index 70572136677..f8227c0ac0c 100644 --- a/source/blender/editors/space_outliner/outliner_edit.cc +++ b/source/blender/editors/space_outliner/outliner_edit.cc @@ -696,7 +696,9 @@ static int outliner_id_remap_invoke(bContext *C, wmOperator *op, const wmEvent * outliner_id_remap_find_tree_element(C, op, &space_outliner->tree, fmval[1]); } - return WM_operator_props_dialog_popup(C, op, 400); + /* Search box for "New ID" property. If more props need to be displayed, a custom + * #wmOperatorType.ui() callback may be best. */ + return WM_enum_search_invoke(C, op, event); } static const EnumPropertyItem *outliner_id_itemf(bContext *C, -- 2.30.2