Skip to content

Commit

Permalink
Make player filter in the debugger case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
ydeltastar committed Aug 6, 2024
1 parent abb2af7 commit 1b04a85
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 1b04a85

Please sign in to comment.