Ejemplo n.º 1
0
 public static void RegisterUndo(HistoryObject UndoStep, HistoryObject.HistoryParameter Params = null)
 {
     Current.AddUndoCleanup();
     Current.AddToHistory(UndoStep);
     Current.CurrentStage = Undo.Current.History.Count;
     UndoStep.Register(Params);
 }
Ejemplo n.º 2
0
 public static void RegisterRedo(HistoryObject RedoStep, HistoryObject.HistoryParameter Params = null)
 {
     Undo.Current.AddToRedoHistory(RedoStep);
     Undo.Current.CurrentStage = Undo.Current.History.Count;
     RedoStep.Register(Params);
 }