summaryrefslogtreecommitdiff
path: root/tools/editor/scene_tree_editor.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-06-12 13:43:31 -0300
committerGeorge Marques <george@gmarqu.es>2016-06-12 14:53:03 -0300
commit68868aabc6f27a8facd8fe3ecb5719bc50f0f3f4 (patch)
tree6f5d9ec78f4f3f20a22a532f26c67c88c2b10ef6 /tools/editor/scene_tree_editor.cpp
parenta6c37d2b5d058d3bad2a942d965564c5054424c5 (diff)
Add subsequence search to tools
Add it to the following searches: - Create node. - Scene tree. - Inspector properties. - Classes list in help. - Quick open.
Diffstat (limited to 'tools/editor/scene_tree_editor.cpp')
-rw-r--r--tools/editor/scene_tree_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/scene_tree_editor.cpp b/tools/editor/scene_tree_editor.cpp
index f8ce121690..f192f9c628 100644
--- a/tools/editor/scene_tree_editor.cpp
+++ b/tools/editor/scene_tree_editor.cpp
@@ -386,7 +386,7 @@ bool SceneTreeEditor::_add_nodes(Node *p_node,TreeItem *p_parent) {
item->set_as_cursor(0);
}
- bool keep= ( filter==String() || String(p_node->get_name()).to_lower().find(filter.to_lower())!=-1 );
+ bool keep= (filter.is_subsequence_ofi(String(p_node->get_name())));
for (int i=0;i<p_node->get_child_count();i++) {