Restrict the project data directory configuration

This commit is contained in:
ne0fhyk
2021-10-13 13:56:18 -07:00
parent f4d9749e23
commit b5c750fa65
7 changed files with 32 additions and 21 deletions

View File

@@ -2163,7 +2163,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;
}