You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +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:
@@ -33,7 +33,6 @@
|
||||
#include "scene/3d/skeleton_ik_3d.h"
|
||||
|
||||
void SkeletonIK3DEditorPlugin::_play() {
|
||||
|
||||
if (!skeleton_ik)
|
||||
return;
|
||||
|
||||
@@ -49,7 +48,6 @@ void SkeletonIK3DEditorPlugin::_play() {
|
||||
}
|
||||
|
||||
void SkeletonIK3DEditorPlugin::edit(Object *p_object) {
|
||||
|
||||
if (p_object != skeleton_ik) {
|
||||
if (skeleton_ik) {
|
||||
play_btn->set_pressed(false);
|
||||
@@ -65,12 +63,10 @@ void SkeletonIK3DEditorPlugin::edit(Object *p_object) {
|
||||
}
|
||||
|
||||
bool SkeletonIK3DEditorPlugin::handles(Object *p_object) const {
|
||||
|
||||
return p_object->is_class("SkeletonIK3D");
|
||||
}
|
||||
|
||||
void SkeletonIK3DEditorPlugin::make_visible(bool p_visible) {
|
||||
|
||||
if (p_visible)
|
||||
play_btn->show();
|
||||
else
|
||||
@@ -81,7 +77,6 @@ void SkeletonIK3DEditorPlugin::_bind_methods() {
|
||||
}
|
||||
|
||||
SkeletonIK3DEditorPlugin::SkeletonIK3DEditorPlugin(EditorNode *p_node) {
|
||||
|
||||
editor = p_node;
|
||||
play_btn = memnew(Button);
|
||||
play_btn->set_icon(editor->get_gui_base()->get_theme_icon("Play", "EditorIcons"));
|
||||
|
||||
Reference in New Issue
Block a user