From 1b04a8589f61f03696f020fb91f365054ac6d37b Mon Sep 17 00:00:00 2001 From: yds Date: Tue, 6 Aug 2024 16:34:06 -0300 Subject: [PATCH] Make player filter in the debugger case-insensitive --- editor/debugger/limbo_debugger_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/debugger/limbo_debugger_plugin.cpp b/editor/debugger/limbo_debugger_plugin.cpp index 53ae161..d433df1 100644 --- a/editor/debugger/limbo_debugger_plugin.cpp +++ b/editor/debugger/limbo_debugger_plugin.cpp @@ -120,8 +120,9 @@ void LimboDebuggerTab::_update_bt_instance_list(const Vector &p_ bt_instance_list->clear(); int select_idx = -1; bool selection_filtered_out = false; + String filter = p_filter.to_lower(); for (const BTInstanceInfo &info : p_instances) { - if (p_filter.is_empty() || info.owner_node_path.contains(p_filter)) { + if (filter.is_empty() || info.owner_node_path.to_lower().contains(filter)) { int idx = bt_instance_list->add_item(info.owner_node_path); bt_instance_list->set_item_metadata(idx, info.instance_id); // Make item text shortened from the left, e.g ".../Agent/BTPlayer".