Skip to content

Commit

Permalink
Merge pull request #189 from ydeltastar/filter-fix
Browse files Browse the repository at this point in the history
Make player filter in the debugger case-insensitive
  • Loading branch information
limbonaut authored Aug 7, 2024
2 parents abb2af7 + 1b04a85 commit f14a19b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/debugger/limbo_debugger_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ void LimboDebuggerTab::_update_bt_instance_list(const Vector<BTInstanceInfo> &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".
Expand Down

0 comments on commit f14a19b

Please sign in to comment.