From 68a6edfd1b5287725abba7730291e0fe501735a9 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Fri, 22 Dec 2017 16:49:14 -0200 Subject: [PATCH] Fixed right dock dragger not disappearing when there is no docks there. --- editor/editor_node.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 24a737e4af9..7f47ec49fc2 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3529,6 +3529,11 @@ void EditorNode::_dock_select_input(const Ref &p_input) { splits[i]->hide(); } + if (right_l_vsplit->is_visible() || right_r_vsplit->is_visible()) + right_hsplit->show(); + else + right_hsplit->hide(); + _edit_current(); _save_docks(); } @@ -3805,7 +3810,11 @@ void EditorNode::_update_dock_slots_visibility() { } } bottom_panel->show(); - right_hsplit->show(); + + if (right_l_vsplit->is_visible() || right_r_vsplit->is_visible()) + right_hsplit->show(); + else + right_hsplit->hide(); } } @@ -3895,6 +3904,11 @@ void EditorNode::_load_docks_from_config(Ref p_layout, const String splits[i]->hide(); } + if (right_l_vsplit->is_visible() || right_r_vsplit->is_visible()) + right_hsplit->show(); + else + right_hsplit->hide(); + for (int i = 0; i < DOCK_SLOT_MAX; i++) { if (dock_slot[i]->is_visible() && dock_slot[i]->get_tab_count()) {