add redo stack, and adjust functions to clear it when new triangle or triangle_stage is added; when an undo function is called, the undoHd becomes the redoHd, and undo becomes undoTl, which is expected behaviour. Still need to implement REDO_ACTION though.

This commit is contained in:
2024-08-08 23:10:38 +01:00
parent 4243e4c679
commit 10b3617689
5 changed files with 126 additions and 84 deletions

View File

@@ -24,6 +24,7 @@ struct
, yClickPoints = yClickPoints
, graphLines = graphLines
, undo = []
, redo = []
, mouseX = 0.0
, mouseY = 0.0
}