1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks

This commit is contained in:
Rémi Verschelde
2021-05-04 14:41:06 +02:00
parent 64a63e0861
commit b5e1e05ef2
1439 changed files with 1 additions and 34187 deletions

View File

@@ -33,7 +33,6 @@
#include "scene/animation/skeleton_ik.h"
void SkeletonIKEditorPlugin::_play() {
if (!skeleton_ik)
return;
@@ -49,7 +48,6 @@ void SkeletonIKEditorPlugin::_play() {
}
void SkeletonIKEditorPlugin::edit(Object *p_object) {
if (p_object != skeleton_ik) {
if (skeleton_ik) {
play_btn->set_pressed(false);
@@ -65,12 +63,10 @@ void SkeletonIKEditorPlugin::edit(Object *p_object) {
}
bool SkeletonIKEditorPlugin::handles(Object *p_object) const {
return p_object->is_class("SkeletonIK");
}
void SkeletonIKEditorPlugin::make_visible(bool p_visible) {
if (p_visible)
play_btn->show();
else
@@ -78,12 +74,10 @@ void SkeletonIKEditorPlugin::make_visible(bool p_visible) {
}
void SkeletonIKEditorPlugin::_bind_methods() {
ClassDB::bind_method("_play", &SkeletonIKEditorPlugin::_play);
}
SkeletonIKEditorPlugin::SkeletonIKEditorPlugin(EditorNode *p_node) {
editor = p_node;
play_btn = memnew(Button);
play_btn->set_icon(editor->get_gui_base()->get_icon("Play", "EditorIcons"));