diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-13 05:20:17 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-13 05:20:17 +0100 |
| commit | 728d34aaaa4c993d4b1f2c0f508f3a33aa069cb0 (patch) | |
| tree | 6a2cde51ddce3ba2d7a563c06b10b83f2361708e /editor/app.cpp | |
| parent | ff1c79d87ba99a2cd3fe97f7047b892445d69191 (diff) | |
dw
Diffstat (limited to 'editor/app.cpp')
| -rw-r--r-- | editor/app.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index c6c298b3..7cb0075a 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -8,6 +8,8 @@ #include "floormat/settings.hpp" #include "loader/loader.hpp" #include "draw/wireframe-meshes.hpp" +#include "editor.hpp" + #include <cstdlib> #include <cstring> #include <algorithm> @@ -32,7 +34,8 @@ const cursor_state& app::cursor_state() { return cursor; } app::app(fm_settings&& opts) : M{floormat_main::create(*this, Utility::move(opts))}, _wireframe{InPlaceInit}, - _tests{tests_data_::make()} + _tests{tests_data_::make()}, + _editor{InPlaceInit, this} { reset_world(); auto& w = M->world(); @@ -99,8 +102,8 @@ void app::reset_world(struct world&& w_) if (!M) return; - _editor.on_release(); - _editor.clear_selection(); + _editor->on_release(); + _editor->clear_selection(); kill_popups(true); tested_light_chunk = {}; tests_reset_mode(); |
