diff options
| author | Juan Linietsky <juan@godotengine.org> | 2019-03-06 12:42:01 -0300 |
|---|---|---|
| committer | Juan Linietsky <juan@godotengine.org> | 2019-03-06 12:42:01 -0300 |
| commit | 6eac6889520aa901fbff75a744e69c3fada11fdb (patch) | |
| tree | a1a5024c42eadf1a7093b30cfbc458a5468e107e /editor/editor_node.cpp | |
| parent | 5f079e2ef90dfc76887814e10b6ed16aa8fe88d9 (diff) | |
| download | redot-engine-6eac6889520aa901fbff75a744e69c3fada11fdb.tar.gz | |
Don't hide/show top editor if they did not change, fixes #26644
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index d940a96123..f0c9e87b76 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1454,9 +1454,21 @@ void EditorNode::edit_item(Object *p_object) { } if (!sub_plugins.empty()) { - _display_top_editors(false); - _set_top_editors(sub_plugins); + bool same = true; + if (sub_plugins.size() == editor_plugins_over->get_plugins_list().size()) { + for (int i = 0; i < sub_plugins.size(); i++) { + if (sub_plugins[i] != editor_plugins_over->get_plugins_list()[i]) { + same = false; + } + } + } else { + same = false; + } + if (!same) { + _display_top_editors(false); + _set_top_editors(sub_plugins); + } _set_editing_top_editors(p_object); _display_top_editors(true); } else { |
