This is an old revision of the document!
Undo and Redo
Each operation on the project graph is performed through a transaction. These transactions are logged in a cache. It is possible to read through this log and apply the transaction in reverse enabling undo-ing the last modifications.
It is possible to re apply the transactions previously βundoneβ. Yet, one a new transaction is performed (running a new RGG function, applying a modification through the attribute editor, adding an object through the menu, β¦) the chain of transaction do not lead to the βredoβ anymore. Thus, it is not possible to βundoβ > apply new > βredoβ.
Note: applying a transaction take some time. Clicking very fast between undo/redo, might trigger a transaction before the last one is properly performed. It usually lead to a NullPointerException.
The commands are
- Undo changes made in the GUI,
- Redo undone actions β as long as no new operations have been performed.
After making a new change, the redo path is no longer available. Users should be aware of this behavior to avoid unintentionally losing the ability to redo: β Undo β Apply new operation β Redo β
