mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
This commit is contained in:
@@ -96,7 +96,6 @@ bool FileSystemDock::_create_tree(TreeItem *p_parent, EditorFileSystemDirectory
|
||||
if (display_mode == DISPLAY_MODE_TREE_ONLY) {
|
||||
String main_scene = ProjectSettings::get_singleton()->get("application/run/main_scene");
|
||||
for (int i = 0; i < p_dir->get_file_count(); i++) {
|
||||
|
||||
String file_type = p_dir->get_file_type(i);
|
||||
|
||||
if (_is_file_type_disabled_by_feature_profile(file_type)) {
|
||||
@@ -556,7 +555,6 @@ bool FileSystemDock::_is_file_type_disabled_by_feature_profile(const StringName
|
||||
StringName class_name = p_class;
|
||||
|
||||
while (class_name != StringName()) {
|
||||
|
||||
if (profile->is_class_disabled(class_name)) {
|
||||
return true;
|
||||
}
|
||||
@@ -578,7 +576,6 @@ void FileSystemDock::_search(EditorFileSystemDirectory *p_path, List<FileInfo> *
|
||||
String file = p_path->get_file(i);
|
||||
|
||||
if (file.to_lower().find(searched_string) != -1) {
|
||||
|
||||
FileInfo fi;
|
||||
fi.name = file;
|
||||
fi.type = p_path->get_file_type(i);
|
||||
@@ -877,9 +874,7 @@ void FileSystemDock::_file_list_activate_file(int p_idx) {
|
||||
|
||||
void FileSystemDock::_preview_invalidated(const String &p_path) {
|
||||
if (file_list_display_mode == FILE_LIST_DISPLAY_THUMBNAILS && p_path.get_base_dir() == path && searched_string.length() == 0 && file_list_vb->is_visible_in_tree()) {
|
||||
|
||||
for (int i = 0; i < files->get_item_count(); i++) {
|
||||
|
||||
if (files->get_item_metadata(i) == p_path) {
|
||||
// Re-request preview.
|
||||
Array udata;
|
||||
@@ -1777,7 +1772,6 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected
|
||||
} break;
|
||||
|
||||
case FILE_INFO: {
|
||||
|
||||
} break;
|
||||
|
||||
case FILE_REIMPORT: {
|
||||
@@ -1951,7 +1945,6 @@ bool FileSystemDock::can_drop_data_fw(const Point2 &p_point, const Variant &p_da
|
||||
Dictionary drag_data = p_data;
|
||||
|
||||
if (drag_data.has("favorite")) {
|
||||
|
||||
if (String(drag_data["favorite"]) != "all") {
|
||||
return false;
|
||||
}
|
||||
@@ -2022,7 +2015,6 @@ void FileSystemDock::drop_data_fw(const Point2 &p_point, const Variant &p_data,
|
||||
Vector<String> dirs = EditorSettings::get_singleton()->get_favorites();
|
||||
|
||||
if (drag_data.has("favorite")) {
|
||||
|
||||
if (String(drag_data["favorite"]) != "all") {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user