diff options
-rw-r--r-- | editor/app.cpp | 2 | ||||
-rw-r--r-- | editor/tests.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index c71d2888..d43e4212 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -83,7 +83,7 @@ void app::reset_world(class world&& w_) return; _editor->on_release(); - _editor->clear_selection(); + //_editor->clear_selection(); kill_popups(true); tested_light_chunk = {}; tests_reset_mode(); diff --git a/editor/tests.cpp b/editor/tests.cpp index 2d9215a5..c5deacae 100644 --- a/editor/tests.cpp +++ b/editor/tests.cpp @@ -95,7 +95,9 @@ tests_data& app::tests() void app::tests_reset_mode() { + auto mode = tests().current_index; tests().switch_to(Test::none); + tests().switch_to(mode); } void app::draw_tests_pane(float width) |