mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-29 06:57:29 +01:00
fix(editor): the band of the curvature edits each arc of a compound curve: its arcs, elements of an even curvature, were taken for nothing to drag, and any change went to the first radius; now the plateau of an arc changes its own radius, a ramp between two arcs the transition between them, the ends of a plateau the transitions either side of it, by a drag or the wheel, the tooltip and the value shown while dragging naming the arc. The tutorial shows the correcting of a compound curve in a clip recorded in the editor in place of the drawing: the plan of the curve opened, the plateau of R2 dragged from 138 to 174 m, the line applied to the scenery
This commit is contained in:
@@ -982,7 +982,8 @@ class editor_mode : public application_mode, private editor_track::observer, pri
|
||||
int hot{-1};
|
||||
double at{-1.0};
|
||||
int vertex{-1};
|
||||
int part{0}; // 1 the radius, 2 the transition in, 3 the transition out
|
||||
int part{0}; // 1 the radius, 2 the transition in, 3 the transition out, 4 the transition between two arcs of a compound curve
|
||||
int arc{0}; // the arc of a compound curve the radius is of, 0 the first; of a transition between arcs the one after it
|
||||
double value{0.0};
|
||||
ImVec2 press{0.0f, 0.0f};
|
||||
float metres{1.0f}; // pixels of a metre and of a unit of the curvature, kept as the drag goes
|
||||
|
||||
Reference in New Issue
Block a user