18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 02:42:46 +01:00

Merge branch 'feat/editor-track-turnouts' into feat/editor-project-file

This commit is contained in:
maj00r
2026-11-29 22:34:20 +01:00
+3 -7
View File
@@ -148,8 +148,8 @@ editor_mode::selftest_result editor_mode::selftest_terrain(std::string const &co
}
if (command == "nmtsettings")
{
// as the terrain panel changes them, kept with the editor the next frame (keep_nmt_settings); the terrain while laying at
// once, as its chip keeps it
// as the terrain panel changes them, kept with the editor the next frame (keep_nmt_settings); the terrain while laying and
// the area for the run only, the settings of the tester's own editor left as they are
auto &state{m_nmt_state};
std::string key;
double value{0.0};
@@ -170,11 +170,7 @@ editor_mode::selftest_result editor_mode::selftest_terrain(std::string const &co
else if (key == "fitted")
state.fitted = value != 0.0;
else if (key == "grow")
{
state.grow = value != 0.0;
EditorSettings.terrain_while_laying(state.grow);
EditorSettings.save();
}
state.grow = value != 0.0; // for the run only, as area: the setting isn't touched, so the tester's own file stays as it was
else if (key == "area")
m_area_terrain.run_only = value != 0.0; // for the run only: the setting isn't touched, so no save keeps it
}