diff options
Diffstat (limited to 'editor/plugins/gi_probe_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/gi_probe_editor_plugin.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/editor/plugins/gi_probe_editor_plugin.cpp b/editor/plugins/gi_probe_editor_plugin.cpp index 925ac8ef11..0930c91e94 100644 --- a/editor/plugins/gi_probe_editor_plugin.cpp +++ b/editor/plugins/gi_probe_editor_plugin.cpp @@ -28,7 +28,6 @@ /*************************************************************************/ #include "gi_probe_editor_plugin.h" - void GIProbeEditorPlugin::_bake() { if (gi_probe) { @@ -36,14 +35,13 @@ void GIProbeEditorPlugin::_bake() { } } - void GIProbeEditorPlugin::edit(Object *p_object) { - GIProbe * s = p_object->cast_to<GIProbe>(); + GIProbe *s = p_object->cast_to<GIProbe>(); if (!s) return; - gi_probe=s; + gi_probe = s; } bool GIProbeEditorPlugin::handles(Object *p_object) const { @@ -59,25 +57,23 @@ void GIProbeEditorPlugin::make_visible(bool p_visible) { bake->hide(); } - } void GIProbeEditorPlugin::_bind_methods() { - ClassDB::bind_method("_bake",&GIProbeEditorPlugin::_bake); + ClassDB::bind_method("_bake", &GIProbeEditorPlugin::_bake); } GIProbeEditorPlugin::GIProbeEditorPlugin(EditorNode *p_node) { - editor=p_node; - bake = memnew( Button ); - bake->set_icon(editor->get_gui_base()->get_icon("BakedLight","EditorIcons")); + editor = p_node; + bake = memnew(Button); + bake->set_icon(editor->get_gui_base()->get_icon("BakedLight", "EditorIcons")); bake->hide(); - bake->connect("pressed",this,"_bake"); - add_control_to_container(CONTAINER_SPATIAL_EDITOR_MENU,bake); - gi_probe=NULL; + bake->connect("pressed", this, "_bake"); + add_control_to_container(CONTAINER_SPATIAL_EDITOR_MENU, bake); + gi_probe = NULL; } - GIProbeEditorPlugin::~GIProbeEditorPlugin() { } |