1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Improve replication editor's pin button

- When unpressed, only hide the editor if MultiplayerSynchronizer is not
  selected.
- Add tooltip text.
This commit is contained in:
Haoyu Qiu
2024-03-25 23:12:26 +08:00
parent ccb1cb4845
commit 8cfded5934
2 changed files with 2 additions and 1 deletions

View File

@@ -149,7 +149,7 @@ void MultiplayerEditorPlugin::_node_removed(Node *p_node) {
}
void MultiplayerEditorPlugin::_pinned() {
if (!repl_editor->get_pin()->is_pressed()) {
if (!repl_editor->get_pin()->is_pressed() && repl_editor->get_current() == nullptr) {
if (repl_editor->is_visible_in_tree()) {
EditorNode::get_bottom_panel()->hide_bottom_panel();
}