summaryrefslogtreecommitdiffhomepage
path: root/editor/app.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-05-18 18:32:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-05-18 18:37:30 +0200
commitf5a7dc9d264c4231d9f688704ceef6971bddf272 (patch)
tree6996ffd40229708db40d781be36e0cf396a9395b /editor/app.hpp
parentec7be88fbb4062af20b77198007d815c321c2850 (diff)
editor: fix removing scenery
Diffstat (limited to 'editor/app.hpp')
-rw-r--r--editor/app.hpp3
1 files changed, 2 insertions, 1 deletions
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<key, key_COUNT>;
@@ -149,7 +150,7 @@ private:
wireframe_mesh<wireframe::quad_wall_w> _wireframe_wall_w {_wireframe_texture};
wireframe_mesh<wireframe::box> _wireframe_box {_wireframe_texture};
wireframe_mesh<wireframe::quad> _wireframe_rect {_wireframe_texture};
- editor _editor;
+ editor _editor{this};
key_set keys;
std::array<int, key_set::COUNT> key_modifiers = {};
std::vector<popup_target> inspectors;