From 411164f34aeea4987dae101cf92beb5dfa8c0cd9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 7 Nov 2022 08:26:36 +0100 Subject: anim atlases now load --- editor/editor.hpp | 1 + editor/scenery-editor.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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; 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) { -- cgit v1.2.3