Restrict the project data directory configuration.

This commit is contained in:
Fredia Huya-Kouadio
2021-10-13 13:16:52 -07:00
parent 2b5d89e635
commit 2b6678c851
6 changed files with 22 additions and 16 deletions

View File

@ -1990,7 +1990,8 @@ Error EditorFileSystem::_resource_import(const String &p_path) {
}
bool EditorFileSystem::_should_skip_directory(const String &p_path) {
if (p_path.begins_with(ProjectSettings::get_singleton()->get_project_data_path())) {
String project_data_path = ProjectSettings::get_singleton()->get_project_data_path();
if (p_path == project_data_path || p_path.begins_with(project_data_path + "/")) {
return true;
}