diff options
author | Yuri Sizov <yuris@humnom.net> | 2021-03-01 18:19:48 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2021-03-01 18:19:48 +0300 |
commit | 2ff1c48e0cf0157a2e151a60c4ee0d969959bda2 (patch) | |
tree | c1f7601c02056598605b27f139c35a9978c3d1e3 | |
parent | bd42a6c51e384f55bbfda9ce64f85b471dbabda6 (diff) |
Properly hide GraphEdit's minimap
-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) { |