MohoDoc:PrepUndo(layer, shallow, willOnlyAddPoints)

Version added: before 9.5

Arguments:

Name Type Description Default Ver
layer MohoLayer The layer that is about to be modified < 9.5
shallow bool Added in version 11 false 11.0
willOnlyAddPoints bool Added in version 14.0 false 14.0

Return value:

void none
Mark a point in editing that the user can "undo" to return to.
NOTE: The original Moho 5.6 documentation stated that passing nil as the argument marks a forthcoming operation as "not undoable". However, it looks like in modern versions, perhaps from version 11, passing nil works for the entire document, not a single layer.

See also: MohoDoc:PrepMultiUndo
<< Back to MohoDoc