summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui-editors.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-19 10:45:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-19 10:45:29 +0100
commitaadd93718a851ac36a6eefbfec273c81ebf7cc14 (patch)
tree499fb2e9c03b70992da90d44f58c8e88470d2450 /editor/imgui-editors.cpp
parent61d46a790cfde35bedf4283cbbcce06639cce1ec (diff)
editor: use anim_atlas::first_rotation()
Diffstat (limited to 'editor/imgui-editors.cpp')
-rw-r--r--editor/imgui-editors.cpp2
1 files changed, 1 insertions, 1 deletions
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]);