Make the project data directory customizable.

This commit is contained in:
ne0fhyk 2021-09-10 08:32:29 -07:00
parent f930d54140
commit 3e44a6375e
7 changed files with 37 additions and 12 deletions

View file

@ -235,7 +235,7 @@ void FindInFiles::_scan_dir(String path, PackedStringArray &out_folders) {
// Ignore special dirs (such as .git and project data directory)
String project_data_dir_name = ProjectSettings::get_singleton()->get_project_data_dir_name();
if (file.begins_with(".") || file == project_data_dir_name) {
if (file.begins_with(".") || file.begins_with(project_data_dir_name)) {
continue;
}
if (dir->current_is_hidden()) {