You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Remove most EditorNode constructor parameters and fields
This commit is contained in:
@@ -126,11 +126,10 @@ void LightmapGIEditorPlugin::_bind_methods() {
|
||||
ClassDB::bind_method("_bake", &LightmapGIEditorPlugin::_bake);
|
||||
}
|
||||
|
||||
LightmapGIEditorPlugin::LightmapGIEditorPlugin(EditorNode *p_node) {
|
||||
editor = p_node;
|
||||
LightmapGIEditorPlugin::LightmapGIEditorPlugin() {
|
||||
bake = memnew(Button);
|
||||
bake->set_flat(true);
|
||||
bake->set_icon(editor->get_gui_base()->get_theme_icon(SNAME("Bake"), SNAME("EditorIcons")));
|
||||
bake->set_icon(EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("Bake"), SNAME("EditorIcons")));
|
||||
bake->set_text(TTR("Bake Lightmaps"));
|
||||
bake->hide();
|
||||
bake->connect("pressed", Callable(this, "_bake"));
|
||||
|
||||
Reference in New Issue
Block a user