From 21356ba6adc4df6d56569d4e659fa5eb1ff180e5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 10 Oct 2023 03:48:18 +0200 Subject: move chunk_coords_ conversion to chunk3() member function --- editor/imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/imgui.cpp b/editor/imgui.cpp index ab6d837a..f7c970e3 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -363,7 +363,7 @@ void app::do_popup_menu() if (bool b_testing = tested_light_chunk == chunk_coords_(e.coord); e.type() == object_type::light) if (ImGui::MenuItem("Test", nullptr, b_testing)) - tested_light_chunk = chunk_coords_(e.coord); + tested_light_chunk = e.coord.chunk3(); ImGui::SeparatorText("Modify"); if (auto next_rot = e.atlas->next_rotation_from(e.r); ImGui::MenuItem("Rotate", nullptr, false, next_rot != e.r && e.can_rotate(next_rot))) -- cgit v1.2.3