diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-01 17:26:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 17:26:50 +0100 |
commit | 09b5d6886f8ef736ca83e3ec965f50a2cb7152f2 (patch) | |
tree | 08568ebb5205b5df8033cc1e7df3e73ffcd140d7 /scene/gui | |
parent | ec7053259b5db8caab3a0a2c5763b03c9c3ca887 (diff) | |
parent | 2ff1c48e0cf0157a2e151a60c4ee0d969959bda2 (diff) |
Merge pull request #46563 from pycbouh/graph-edit-hide-minimap-properly
Properly hide GraphEdit's minimap
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/graph_edit.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index 9c8669fff0..331f0380c5 100644 --- a/scene/gui/graph_edit.cpp +++ b/scene/gui/graph_edit.cpp @@ -1558,7 +1558,12 @@ bool GraphEdit::is_minimap_enabled() const { } void GraphEdit::_minimap_toggled() { - minimap->update(); + if (is_minimap_enabled()) { + minimap->set_visible(true); + minimap->update(); + } else { + minimap->set_visible(false); + } } void GraphEdit::set_connection_lines_thickness(float p_thickness) { |