summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--editor/editor.hpp1
-rw-r--r--editor/scenery-editor.cpp5
2 files changed, 5 insertions, 1 deletions
diff --git a/editor/editor.hpp b/editor/editor.hpp
index b25e6900..1c9d9bec 100644
--- a/editor/editor.hpp
+++ b/editor/editor.hpp
@@ -51,6 +51,7 @@ private:
tile_editor _floor{ editor_mode::floor, "floor" };
tile_editor _wall { editor_mode::walls, "wall" };
+ scenery_editor _scenery;
struct drag_pos final {
global_coords coord, draw_coord;
diff --git a/editor/scenery-editor.cpp b/editor/scenery-editor.cpp
index ac84abc8..74776ea1 100644
--- a/editor/scenery-editor.cpp
+++ b/editor/scenery-editor.cpp
@@ -10,7 +10,10 @@ using rotation_t = std::underlying_type_t<rotation_>;
scenery_editor::pair::operator bool() const { return atlas != nullptr; }
-scenery_editor::scenery_editor() noexcept = default;
+scenery_editor::scenery_editor() noexcept
+{
+ load_atlases();
+}
void scenery_editor::set_rotation(enum rotation r)
{