1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Fixes infinite loop when switching editor

This commit is contained in:
Haoyu Qiu
2019-12-11 13:27:21 +08:00
parent 435cced7d8
commit 6f178a2061

View File

@@ -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);
}