Edit mode track updates

This commit is contained in:
2025-02-22 16:31:53 -07:00
parent 10d462edaf
commit 2176f67413
3 changed files with 22 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ export class EditTrackState extends State<States> {
p.set(mousePos);
p.add(relativePoint);
});
segment.recalculateTiePoints();
segment.update();
const ends = track.findEnds();
setContextItem("showEnds", true);
@@ -130,7 +130,7 @@ export class EditTrackState extends State<States> {
break;
}
}
this.ghostSegment.recalculateTiePoints();
this.ghostSegment.update();
// } else if (closestEnd) {
// this.closestEnd = closestEnd;
@@ -245,6 +245,7 @@ export class EditTrackState extends State<States> {
if (translation.x !== 0 || translation.y !== 0) {
track.translate(translation);
track.recalculateAll();
}
// TODO