mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-03 01:30:16 +01:00
refactor(editor): the joints check is a tool of its own
The third tool out of editor_mode. It reaches the terrain model and the places of the tracks on it through the services, the place of a track for the terrain model is a type of its own now, and the laying and the switches ask the tool for the kink it allows. A self-test command can ask to be run again in the next frame, as the check against the terrain model does while the model comes in.
This commit is contained in:
@@ -470,7 +470,7 @@ std::vector<segment_data> editor_mode::join_pieces(TTrack const *From, editor_tr
|
||||
request.variant = m_join_variant;
|
||||
request.transitions = m_lay.transitions;
|
||||
request.speed = design_speed(From, End.track);
|
||||
request.kink = m_joints.angle * 0.5;
|
||||
request.kink = m_joints.kink_angle() * 0.5;
|
||||
request.shape = m_route.design.shape;
|
||||
request.norms = laying_norms();
|
||||
auto result{alignment::join(request)};
|
||||
|
||||
Reference in New Issue
Block a user