diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2019-12-11 13:27:21 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2019-12-11 13:27:21 +0800 |
commit | 6f178a20616cdad6656c58d6b94aac556a5f77c4 (patch) | |
tree | 45fb0188a60059cb24336b6986ad41a515059743 /editor/editor_node.cpp | |
parent | 435cced7d8fbc80e6842d7c171a87d4db1e64fe4 (diff) |
Fixes infinite loop when switching editor
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 980d82d6df..05f029f3c4 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -630,7 +630,7 @@ void EditorNode::_editor_select_next() { } else { editor++; } - } while (main_editor_buttons[editor]->is_visible()); + } while (!main_editor_buttons[editor]->is_visible()); _editor_select(editor); } @@ -645,7 +645,7 @@ void EditorNode::_editor_select_prev() { } else { editor--; } - } while (main_editor_buttons[editor]->is_visible()); + } while (!main_editor_buttons[editor]->is_visible()); _editor_select(editor); } |