summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-07 08:26:36 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-07 08:26:36 +0100
commit411164f34aeea4987dae101cf92beb5dfa8c0cd9 (patch)
treedbf0a48f468cb6881d885c4292dfd0438a20c674
parentacf2dd9af63e9a99077f43b19427657ea0bd1d3d (diff)
anim atlases now load
-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)
{