Fix filtering of search results in SectionedInspector

(cherry picked from commit 7f226d0a85)
This commit is contained in:
booer 2020-09-02 15:31:34 +07:00 committed by Rémi Verschelde
parent 777d90d7a1
commit 4d27433c1d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -245,7 +245,7 @@ void SectionedInspector::update_category_list() {
if (pi.name.find(":") != -1 || pi.name == "script" || pi.name == "resource_name" || pi.name == "resource_path" || pi.name == "resource_local_to_scene" || pi.name.begins_with("_global_script")) if (pi.name.find(":") != -1 || pi.name == "script" || pi.name == "resource_name" || pi.name == "resource_path" || pi.name == "resource_local_to_scene" || pi.name.begins_with("_global_script"))
continue; continue;
if (!filter.empty() && !filter.is_subsequence_ofi(pi.name) && !filter.is_subsequence_ofi(pi.name.replace("/", " ").capitalize())) if (!filter.empty() && pi.name.findn(filter) == -1 && pi.name.replace("/", " ").capitalize().findn(filter) == -1)
continue; continue;
int sp = pi.name.find("/"); int sp = pi.name.find("/");