From aadd93718a851ac36a6eefbfec273c81ebf7cc14 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 19 Mar 2023 10:45:29 +0100 Subject: editor: use anim_atlas::first_rotation() --- editor/imgui-editors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/imgui-editors.cpp b/editor/imgui-editors.cpp index 77658680..f5a1634d 100644 --- a/editor/imgui-editors.cpp +++ b/editor/imgui-editors.cpp @@ -47,7 +47,7 @@ void app::draw_editor_scenery_pane(scenery_editor& ed) if (ImGui::TableSetColumnIndex(0)) { auto& atlas = *scenery.proto.atlas; - const auto r = atlas.next_rotation_from(rotation_COUNT); + const auto r = atlas.first_rotation(); const auto& frame = atlas.frame(r, 0); const auto size = Vector2(frame.size); const float c = std::min(thumbnail_width / size[0], row_height / size[1]); -- cgit v1.2.3