You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Remove most EditorNode constructor parameters and fields
This commit is contained in:
@@ -144,14 +144,13 @@ void VoxelGIEditorPlugin::_voxel_gi_save_path_and_bake(const String &p_path) {
|
||||
void VoxelGIEditorPlugin::_bind_methods() {
|
||||
}
|
||||
|
||||
VoxelGIEditorPlugin::VoxelGIEditorPlugin(EditorNode *p_node) {
|
||||
editor = p_node;
|
||||
VoxelGIEditorPlugin::VoxelGIEditorPlugin() {
|
||||
bake_hb = memnew(HBoxContainer);
|
||||
bake_hb->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
bake_hb->hide();
|
||||
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 VoxelGI"));
|
||||
bake->connect("pressed", callable_mp(this, &VoxelGIEditorPlugin::_bake));
|
||||
bake_hb->add_child(bake);
|
||||
|
||||
Reference in New Issue
Block a user