From 728d34aaaa4c993d4b1f2c0f508f3a33aa069cb0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 13 Jan 2024 05:20:17 +0100 Subject: dw --- editor/app.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'editor/app.cpp') 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 #include #include @@ -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(); -- cgit v1.2.3