18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 06:35:21 +01:00

merge: staging (e2abe038) into pr/brush

Staging took in about 27 pull requests on 25.11. One conflict:
- tests/unit/CMakeLists.txt: the editorScatter.cpp of this branch and the Camera.cpp of #474 (test_camera.cpp),
  both added after editorHttp.cpp. Both kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRgQ1HXT7zwFMzhMEKcksM
This commit is contained in:
Claude
2026-11-25 06:33:04 +00:00
149 changed files with 11751 additions and 558 deletions
+5
View File
@@ -7426,7 +7426,12 @@ void editor_mode::on_key(int const Key, int const Scancode, int const Action, in
}
if (is_press(Action))
{
// in the road window the first Esc gives up the road being drawn, the next one goes back to the selection
auto const &road{m_roadtool};
auto const next{editor_road::tool_after_escape(road.tool, road.chain || road.branchroad != nullptr || road.branchjunction != nullptr, road.lifting)};
road_cancel();
if (road.window && ui()->mode() != nodebank_panel::TRACK)
road_choose_tool(next);
}
// the first Esc drops what is going on in the track mode, the next one goes back to the selection
if (is_press(Action) && ui()->mode() == nodebank_panel::TRACK)