Skip to content

Commit

Permalink
Remove duplicated initial guess constraint check at start and end of …
Browse files Browse the repository at this point in the history
…path (#471)
  • Loading branch information
bruingineer authored May 1, 2024
1 parent 14ee572 commit f8ecb49
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/document/DocumentModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,6 @@ const StateStore = types
reject("Cannot end a path with an initial guess point.");
}
}
if (wpt.isInitialGuess) {
if (idx == 0) {
reject("Cannot start a path with an initial guess point.");
} else if (idx == pathStore.waypoints.length - 1) {
reject("Cannot end a path with an initial guess point.");
}
}
});
pathStore.setGenerating(true);
// Capture the timestamps of the waypoints that were actually sent to the solver
Expand Down

0 comments on commit f8ecb49

Please sign in to comment.