From f5a7dc9d264c4231d9f688704ceef6971bddf272 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 18 May 2023 18:32:39 +0200 Subject: editor: fix removing scenery --- editor/app.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor/app.hpp') diff --git a/editor/app.hpp b/editor/app.hpp index b78037a0..51ea0296 100644 --- a/editor/app.hpp +++ b/editor/app.hpp @@ -58,6 +58,7 @@ struct app final : floormat_app #ifdef _WIN32 static void set_dpi_aware(); #endif + object_id object_at_cursor(); private: using key_set = enum_bitset; @@ -149,7 +150,7 @@ private: wireframe_mesh _wireframe_wall_w {_wireframe_texture}; wireframe_mesh _wireframe_box {_wireframe_texture}; wireframe_mesh _wireframe_rect {_wireframe_texture}; - editor _editor; + editor _editor{this}; key_set keys; std::array key_modifiers = {}; std::vector inspectors; -- cgit v1.2.3