From 1d5e5ac5278ead740d266049898c68e867df6ab6 Mon Sep 17 00:00:00 2001 From: maj00r <73280030+maj00r@users.noreply.github.com> Date: Tue, 24 Nov 2026 18:55:09 +0100 Subject: [PATCH] fix(editor): the checkbox of the terrain around the camera in the layers shows the answer Without terrain of the scenery open --- application/editormode.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/editormode.cpp b/application/editormode.cpp index 3de38c1b5..89ef80d56 100644 --- a/application/editormode.cpp +++ b/application/editormode.cpp @@ -1879,9 +1879,13 @@ void editor_mode::render_terrain_loading() if (ImGui::IsItemHovered()) ImGui::SetTooltip("%s", STR_C("Where the terrain of the scenery ends, the terrain model is made under the tracks as they're laid, around the cursor from the first point placed; " "the chunks there are stay as they are. Off, it's made only when asked for")); - auto &model{EditorSettings.terrain_model()}; - if (ImGui::Checkbox(STR_C("The terrain of the scenery around the camera"), &model.area)) + // as it is for the scenery open: off after the answer Without terrain, and ticked, on again and kept so in the settings + if (bool area{nmt_area()}; ImGui::Checkbox(STR_C("The terrain of the scenery around the camera"), &area)) + { + m_nmt_state.declined = false; + EditorSettings.terrain_model().area = area; EditorSettings.save(); + } if (ImGui::IsItemHovered()) ImGui::SetTooltip("%s", STR_C("Makes the terrain from the terrain model within the area, around the camera wherever it goes,\n" "a chunk at a time while the editor is idle. The terrain there is already isn't touched.\n"