OOF2: The Manual
Name
OOF.Skeleton.PinNodes.Undo — Undo the pinning operation.
Synopsis
OOF.Skeleton.PinNodes.Undo(skeleton
)
Details
- Parent Menu: OOF.Skeleton.PinNodes
-
Callback: function
_undo
in moduleooflib.engine.pinnodesmodifier
-
Parameters:
skeleton
- Type: The path to an existing
Skeleton
object.
Description
As well as keeping track of which Nodes
are currently pinned, each
Skeleton
maintains a stack of previous sets of pinned Nodes
.
Whenever nodes are pinned or unpinned, a new set is pushed onto
the stack. The Undo command pops the latest
version off of the stack, thereby reverting to the previous set of
pinned Nodes
. The popped version is not destroyed -- it can be
recovered with the OOF.Skeleton.PinNodes.Redo command.
The stack is not infinite. When it is full, the oldest set of
pinned Nodes
will be lost to make room for a new one.