Fix for spline UI multisplines
Not sure why, but the indexing for the spline modifications was off.
Change-Id: I1b9e7345f5f25877ab974eea7f5df4630b1d71c7
diff --git a/frc971/control_loops/python/path_edit.py b/frc971/control_loops/python/path_edit.py
index ce87aff..f198299 100755
--- a/frc971/control_loops/python/path_edit.py
+++ b/frc971/control_loops/python/path_edit.py
@@ -326,7 +326,7 @@
difs = np.array([pxToM(dif_x), pxToM(dif_y)])
if self.mode == Mode.kEditing:
- self.spline_edit = self.points.updates_for_mouse_move(
+ self.points.updates_for_mouse_move(
self.index_of_edit, self.spline_edit, self.x, self.y, difs)
def export_json(self, file_name):
@@ -406,8 +406,7 @@
self.points.setSplines(self.spline_edit, self.index_of_edit,
pxToM(self.x), pxToM(self.y))
- self.spline_edit = self.points.splineExtrapolate(
- self.spline_edit)
+ self.points.splineExtrapolate(self.spline_edit)
self.index_of_edit = -1
self.spline_edit = -1