From 68868aabc6f27a8facd8fe3ecb5719bc50f0f3f4 Mon Sep 17 00:00:00 2001 From: George Marques Date: Sun, 12 Jun 2016 13:43:31 -0300 Subject: Add subsequence search to tools Add it to the following searches: - Create node. - Scene tree. - Inspector properties. - Classes list in help. - Quick open. --- tools/editor/scene_tree_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/editor/scene_tree_editor.cpp') 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;iget_child_count();i++) { -- cgit v1.2.3