Merge pull request #4688 from volzhs/search-tree
use case insensitive for searching nodes in Scene tree dock
This commit is contained in:
commit
10e6525a10
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ bool SceneTreeEditor::_add_nodes(Node *p_node,TreeItem *p_parent) {
|
||||||
item->set_as_cursor(0);
|
item->set_as_cursor(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool keep= ( filter==String() || String(p_node->get_name()).find(filter)!=-1 );
|
bool keep= ( filter==String() || String(p_node->get_name()).to_lower().find(filter.to_lower())!=-1 );
|
||||||
|
|
||||||
for (int i=0;i<p_node->get_child_count();i++) {
|
for (int i=0;i<p_node->get_child_count();i++) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue