diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-13 13:25:56 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-13 13:25:56 -0300 |
commit | 20b45678293551f9fdb5a4b13ec1d5871a3d9cf8 (patch) | |
tree | 24bf08bb47ef788c7b103eadf73f5d10ecb46c52 /tools/editor/scene_tree_editor.cpp | |
parent | 7127f0943df4790f49afa8fda084ea6dff705e7e (diff) | |
parent | feb95fa9ace04a3f2eb883e39995b962fde09561 (diff) |
Merge pull request #5177 from vnen/string-subsequence
Add subsequence search to tools
Diffstat (limited to 'tools/editor/scene_tree_editor.cpp')
-rw-r--r-- | tools/editor/scene_tree_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/scene_tree_editor.cpp b/tools/editor/scene_tree_editor.cpp index 65e731dd4d..2de6fc5cf2 100644 --- a/tools/editor/scene_tree_editor.cpp +++ b/tools/editor/scene_tree_editor.cpp @@ -428,7 +428,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++) { |