You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Include filesystem dock split offset in editor layouts
Cherry-picked from 2ac89f6540
This commit is contained in:
@@ -4514,6 +4514,8 @@ void EditorNode::_save_docks_to_config(Ref<ConfigFile> p_layout, const String& p
|
||||
}
|
||||
}
|
||||
|
||||
p_layout->set_value(p_section,"dock_filesystem_split",filesystem_dock->get_split_offset());
|
||||
|
||||
VSplitContainer*splits[DOCK_SLOT_MAX/2]={
|
||||
left_l_vsplit,
|
||||
left_r_vsplit,
|
||||
@@ -4690,6 +4692,12 @@ void EditorNode::_load_docks_from_config(Ref<ConfigFile> p_layout, const String&
|
||||
}
|
||||
}
|
||||
|
||||
int fs_split_ofs = 0;
|
||||
if (p_layout->has_section_key(p_section,"dock_filesystem_split")) {
|
||||
fs_split_ofs = p_layout->get_value(p_section,"dock_filesystem_split");
|
||||
}
|
||||
filesystem_dock->set_split_offset(fs_split_ofs);
|
||||
|
||||
VSplitContainer*splits[DOCK_SLOT_MAX/2]={
|
||||
left_l_vsplit,
|
||||
left_r_vsplit,
|
||||
|
||||
Reference in New Issue
Block a user