You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
This commit is contained in:
@@ -87,7 +87,6 @@ void BakedLightmapEditorPlugin::_bake() {
|
||||
}
|
||||
|
||||
void BakedLightmapEditorPlugin::edit(Object *p_object) {
|
||||
|
||||
BakedLightmap *s = Object::cast_to<BakedLightmap>(p_object);
|
||||
if (!s)
|
||||
return;
|
||||
@@ -96,16 +95,13 @@ void BakedLightmapEditorPlugin::edit(Object *p_object) {
|
||||
}
|
||||
|
||||
bool BakedLightmapEditorPlugin::handles(Object *p_object) const {
|
||||
|
||||
return p_object->is_class("BakedLightmap");
|
||||
}
|
||||
|
||||
void BakedLightmapEditorPlugin::make_visible(bool p_visible) {
|
||||
|
||||
if (p_visible) {
|
||||
bake->show();
|
||||
} else {
|
||||
|
||||
bake->hide();
|
||||
}
|
||||
}
|
||||
@@ -142,13 +138,11 @@ void BakedLightmapEditorPlugin::bake_func_end() {
|
||||
}
|
||||
|
||||
void BakedLightmapEditorPlugin::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method("_bake", &BakedLightmapEditorPlugin::_bake);
|
||||
ClassDB::bind_method("_bake_select_file", &BakedLightmapEditorPlugin::_bake_select_file);
|
||||
}
|
||||
|
||||
BakedLightmapEditorPlugin::BakedLightmapEditorPlugin(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