You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Style: Apply new changes from clang-format 8.0
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
This commit is contained in:
@@ -200,7 +200,8 @@ void AnimationTreePlayerEditor::_edit_dialog_changed() {
|
||||
if (anim_tree->transition_node_get_current(edited_node) != edit_option->get_selected())
|
||||
anim_tree->transition_node_set_current(edited_node, edit_option->get_selected());
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -457,7 +458,8 @@ void AnimationTreePlayerEditor::_popup_edit_dialog() {
|
||||
edit_dialog->set_size(Size2(150, 100));
|
||||
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -555,7 +557,8 @@ void AnimationTreePlayerEditor::_draw_node(const StringName &p_node) {
|
||||
text += "->";
|
||||
|
||||
break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
font->draw(ci, ofs + ascofs + Point2(3, 0), text, font_color);
|
||||
|
||||
@@ -740,7 +743,8 @@ void AnimationTreePlayerEditor::_gui_input(Ref<InputEvent> p_event) {
|
||||
//open editor
|
||||
//_node_edit_property(click_node);
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mb->get_button_index() == 2) {
|
||||
@@ -817,7 +821,8 @@ void AnimationTreePlayerEditor::_gui_input(Ref<InputEvent> p_event) {
|
||||
anim_tree->node_set_position(click_node, new_pos);
|
||||
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
|
||||
click_type = CLICK_NONE;
|
||||
|
||||
@@ -454,7 +454,8 @@ void EditorAssetLibraryItemDownload::_notification(int p_what) {
|
||||
progress->set_max(1);
|
||||
progress->set_value(0);
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
prev_status = cstatus;
|
||||
}
|
||||
@@ -612,7 +613,8 @@ void EditorAssetLibrary::_notification(int p_what) {
|
||||
case HTTPClient::STATUS_BODY: {
|
||||
load_status->set_value(0.4);
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,8 @@ void BakedLightmapEditorPlugin::_bake() {
|
||||
case BakedLightmap::BAKE_ERROR_CANT_CREATE_IMAGE:
|
||||
EditorNode::get_singleton()->show_warning(TTR("Failed creating lightmap images, make sure path is writable."));
|
||||
break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,8 @@ void MeshLibraryEditor::_menu_confirm() {
|
||||
_import_scene_cbk(existing);
|
||||
|
||||
} break;
|
||||
default: {};
|
||||
default: {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -905,7 +905,8 @@ void Polygon2DEditor::_uv_input(const Ref<InputEvent> &p_input) {
|
||||
|
||||
bone_paint_pos = Vector2(mm->get_position().x, mm->get_position().y);
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
|
||||
if (bone_painting) {
|
||||
|
||||
@@ -1637,7 +1637,8 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
||||
surface->update();
|
||||
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1704,7 +1705,8 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
||||
|
||||
} break;
|
||||
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1760,7 +1762,8 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
||||
|
||||
} break;
|
||||
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -770,7 +770,8 @@ void TileSetEditor::_on_edit_mode_changed(int p_edit_mode) {
|
||||
spin_z_index->show();
|
||||
}
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
_update_toggle_shape_button();
|
||||
workspace->update();
|
||||
@@ -940,7 +941,8 @@ void TileSetEditor::_on_workspace_draw() {
|
||||
spin_z_index->set_value(tileset->autotile_get_z_index(get_current_tile(), edited_shape_coord));
|
||||
draw_highlight_subtile(edited_shape_coord);
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1570,7 +1572,8 @@ void TileSetEditor::_on_workspace_input(const Ref<InputEvent> &p_ie) {
|
||||
}
|
||||
}
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1724,7 +1727,8 @@ void TileSetEditor::_on_tool_clicked(int p_tool) {
|
||||
undo_redo->commit_action();
|
||||
}
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (p_tool == TOOL_SELECT) {
|
||||
@@ -1894,7 +1898,8 @@ void TileSetEditor::_select_next_tile() {
|
||||
edited_shape_coord = Vector2();
|
||||
_select_edited_shape_coord();
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1931,7 +1936,8 @@ void TileSetEditor::_select_previous_tile() {
|
||||
edited_shape_coord = cell_count;
|
||||
_select_edited_shape_coord();
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2668,7 +2674,8 @@ void TileSetEditor::draw_polygon_shapes() {
|
||||
}
|
||||
}
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
|
||||
if (creating_shape) {
|
||||
|
||||
@@ -453,7 +453,8 @@ void VisualShaderEditor::_update_graph() {
|
||||
Vector3 v = default_value;
|
||||
button->set_text(String::num(v.x, 3) + "," + String::num(v.y, 3) + "," + String::num(v.z, 3));
|
||||
} break;
|
||||
default: {}
|
||||
default: {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user