mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[VisualShader] Fix and improve editor state persistence
This commit is contained in:
parent
1218a16de5
commit
666d7c030b
7 changed files with 139 additions and 106 deletions
|
|
@ -454,6 +454,7 @@ void ShaderEditorPlugin::_close_shader(int p_index) {
|
|||
Control *c = shader_tabs->get_tab_control(p_index);
|
||||
VisualShaderEditor *vs_editor = Object::cast_to<VisualShaderEditor>(c);
|
||||
if (vs_editor) {
|
||||
vs_editor->save_editor_layout();
|
||||
file_menu->get_parent()->remove_child(file_menu);
|
||||
menu_hb->add_child(file_menu);
|
||||
menu_hb->move_child(file_menu, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue