diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index 3f87e7c9..177b65ff 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -375,10 +375,16 @@ class _HomePageState extends State with TickerProviderStateMixin { while (pathNames.contains(pathName)) { pathName = '$pathName Copy'; } + _paths.add(RobotPath( waypoints: RobotPath.cloneWaypointList( _paths[i].waypoints), + maxVelocity: _paths[i].maxVelocity, + maxAcceleration: _paths[i].maxAcceleration, + isReversed: _paths[i].isReversed, name: pathName, + markers: + RobotPath.cloneMarkerList(_paths[i].markers), )); _currentPath = _paths.last; _savePath(_currentPath!);