diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/imgui.cpp | 2 |
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))) |