summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-04 07:21:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-04 07:21:51 +0100
commit3706123e776c95f0e9fe088678eb9885ce0eb881 (patch)
tree7b5cef8e6b05d71a82c121c56bb8beaf6541d604 /editor
parentd7aed04bf715861ac237a7947c624d270726c878 (diff)
b
Diffstat (limited to 'editor')
-rw-r--r--editor/app.cpp2
-rw-r--r--editor/tests.cpp2
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)