You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
This commit is contained in:
@@ -33,12 +33,10 @@
|
||||
#include "editor/editor_scale.h"
|
||||
|
||||
bool EditorInspectorPluginStyleBox::can_handle(Object *p_object) {
|
||||
|
||||
return Object::cast_to<StyleBox>(p_object) != NULL;
|
||||
}
|
||||
|
||||
void EditorInspectorPluginStyleBox::parse_begin(Object *p_object) {
|
||||
|
||||
Ref<StyleBox> sb = Ref<StyleBox>(Object::cast_to<StyleBox>(p_object));
|
||||
|
||||
StyleBoxPreview *preview = memnew(StyleBoxPreview);
|
||||
@@ -52,7 +50,6 @@ void EditorInspectorPluginStyleBox::parse_end() {
|
||||
}
|
||||
|
||||
void StyleBoxPreview::edit(const Ref<StyleBox> &p_stylebox) {
|
||||
|
||||
if (stylebox.is_valid())
|
||||
stylebox->disconnect("changed", this, "_sb_changed");
|
||||
stylebox = p_stylebox;
|
||||
@@ -64,7 +61,6 @@ void StyleBoxPreview::edit(const Ref<StyleBox> &p_stylebox) {
|
||||
}
|
||||
|
||||
void StyleBoxPreview::_sb_changed() {
|
||||
|
||||
preview->update();
|
||||
}
|
||||
|
||||
@@ -82,7 +78,6 @@ void StyleBoxPreview::_redraw() {
|
||||
}
|
||||
|
||||
void StyleBoxPreview::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method("_sb_changed", &StyleBoxPreview::_sb_changed);
|
||||
ClassDB::bind_method("_redraw", &StyleBoxPreview::_redraw);
|
||||
}
|
||||
@@ -96,7 +91,6 @@ StyleBoxPreview::StyleBoxPreview() {
|
||||
}
|
||||
|
||||
StyleBoxEditorPlugin::StyleBoxEditorPlugin(EditorNode *p_node) {
|
||||
|
||||
Ref<EditorInspectorPluginStyleBox> inspector_plugin;
|
||||
inspector_plugin.instance();
|
||||
add_inspector_plugin(inspector_plugin);
|
||||
|
||||
Reference in New Issue
Block a user