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:
@@ -31,14 +31,12 @@
|
||||
#include "gi_probe_editor_plugin.h"
|
||||
|
||||
void GIProbeEditorPlugin::_bake() {
|
||||
|
||||
if (gi_probe) {
|
||||
gi_probe->bake();
|
||||
}
|
||||
}
|
||||
|
||||
void GIProbeEditorPlugin::edit(Object *p_object) {
|
||||
|
||||
GIProbe *s = Object::cast_to<GIProbe>(p_object);
|
||||
if (!s)
|
||||
return;
|
||||
@@ -47,16 +45,13 @@ void GIProbeEditorPlugin::edit(Object *p_object) {
|
||||
}
|
||||
|
||||
bool GIProbeEditorPlugin::handles(Object *p_object) const {
|
||||
|
||||
return p_object->is_class("GIProbe");
|
||||
}
|
||||
|
||||
void GIProbeEditorPlugin::make_visible(bool p_visible) {
|
||||
|
||||
if (p_visible) {
|
||||
bake->show();
|
||||
} else {
|
||||
|
||||
bake->hide();
|
||||
}
|
||||
}
|
||||
@@ -64,14 +59,12 @@ void GIProbeEditorPlugin::make_visible(bool p_visible) {
|
||||
EditorProgress *GIProbeEditorPlugin::tmp_progress = NULL;
|
||||
|
||||
void GIProbeEditorPlugin::bake_func_begin(int p_steps) {
|
||||
|
||||
ERR_FAIL_COND(tmp_progress != NULL);
|
||||
|
||||
tmp_progress = memnew(EditorProgress("bake_gi", TTR("Bake GI Probe"), p_steps));
|
||||
}
|
||||
|
||||
void GIProbeEditorPlugin::bake_func_step(int p_step, const String &p_description) {
|
||||
|
||||
ERR_FAIL_COND(tmp_progress == NULL);
|
||||
tmp_progress->step(p_description, p_step, false);
|
||||
}
|
||||
@@ -83,12 +76,10 @@ void GIProbeEditorPlugin::bake_func_end() {
|
||||
}
|
||||
|
||||
void GIProbeEditorPlugin::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method("_bake", &GIProbeEditorPlugin::_bake);
|
||||
}
|
||||
|
||||
GIProbeEditorPlugin::GIProbeEditorPlugin(EditorNode *p_node) {
|
||||
|
||||
editor = p_node;
|
||||
bake = memnew(ToolButton);
|
||||
bake->set_icon(editor->get_gui_base()->get_icon("Bake", "EditorIcons"));
|
||||
|
||||
Reference in New Issue
Block a user