You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
@@ -38,7 +38,6 @@ Size2 GradientEditor::get_minimum_size() const {
|
||||
return Size2(0, 60) * EDSCALE;
|
||||
}
|
||||
void GradientEditor::_gradient_changed() {
|
||||
|
||||
if (editing)
|
||||
return;
|
||||
|
||||
@@ -49,7 +48,6 @@ void GradientEditor::_gradient_changed() {
|
||||
}
|
||||
|
||||
void GradientEditor::_ramp_changed() {
|
||||
|
||||
editing = true;
|
||||
UndoRedo *undo_redo = EditorNode::get_singleton()->get_undo_redo();
|
||||
undo_redo->create_action(TTR("Gradient Edited"));
|
||||
@@ -78,12 +76,10 @@ GradientEditor::GradientEditor() {
|
||||
///////////////////////
|
||||
|
||||
bool EditorInspectorPluginGradient::can_handle(Object *p_object) {
|
||||
|
||||
return Object::cast_to<Gradient>(p_object) != nullptr;
|
||||
}
|
||||
|
||||
void EditorInspectorPluginGradient::parse_begin(Object *p_object) {
|
||||
|
||||
Gradient *gradient = Object::cast_to<Gradient>(p_object);
|
||||
Ref<Gradient> g(gradient);
|
||||
|
||||
@@ -93,7 +89,6 @@ void EditorInspectorPluginGradient::parse_begin(Object *p_object) {
|
||||
}
|
||||
|
||||
GradientEditorPlugin::GradientEditorPlugin(EditorNode *p_node) {
|
||||
|
||||
Ref<EditorInspectorPluginGradient> plugin;
|
||||
plugin.instance();
|
||||
add_inspector_plugin(plugin);
|
||||
|
||||
Reference in New Issue
Block a user