1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Fix bottom panel pinning

This commit is contained in:
kobewi
2025-12-08 23:19:05 +01:00
parent 757bba192e
commit c15e04cc43
2 changed files with 7 additions and 2 deletions

View File

@@ -866,7 +866,7 @@ void EditorDockManager::focus_dock(EditorDock *p_dock) {
}
if (!p_dock->is_open) {
open_dock(p_dock);
open_dock(p_dock, false);
}
if (p_dock->dock_window) {
@@ -874,7 +874,11 @@ void EditorDockManager::focus_dock(EditorDock *p_dock) {
return;
}
if (!docks_visible && p_dock->get_parent() != EditorNode::get_bottom_panel()) {
if (p_dock->get_parent() == EditorNode::get_bottom_panel()) {
if (EditorNode::get_bottom_panel()->is_locked()) {
return;
}
} else if (!docks_visible) {
return;
}