summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-10 03:48:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-10 03:48:18 +0200
commit21356ba6adc4df6d56569d4e659fa5eb1ff180e5 (patch)
tree7c5f664cc9e4886872dd7f792c3e05f8bf4f7971 /editor
parentc8c99448c061508a4f40a315c4a71934971e6b54 (diff)
move chunk_coords_ conversion to chunk3() member function
Diffstat (limited to 'editor')
-rw-r--r--editor/imgui.cpp2
1 files changed, 1 insertions, 1 deletions
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)))