OOF2: The Manual
Name
OOF.Skeleton.Undo — Undo a Skeleton modification.
Synopsis
OOF.Skeleton.Undo(skeleton
)
Details
- Parent Menu: OOF.Skeleton
-
Callback: function
_undo
in moduleooflib.engine.IO.skeletonmenu
-
Parameters:
skeleton
- Type: The path to an existing
Skeleton
object.
Description
Each Skeleton
maintains a stack of previous incarnations of itself.
Whenever a Skeleton
is modified, a new
version is pushed onto the stack. The Undo
pops the latest version off of the stack, thereby reverting to the
previous version of the Skeleton
. The popped version is not
destroyed -- it can be recovered with the OOF.Skeleton.Redo command.
The Skeleton
stack is not infinite. When it is full, the oldest
version of a Skeleton
will be lost when a new modification is made.