CancelUndo() vs DropUndo()
Stretch65
Posts: 167
If I begin a script with beginUndo(), and then at some point I need to abort/discard the undo, what method should I use: cancelUndo() or dropUndo()?
Comments
They are not at all the same - Cancel reverts the action, Drop performs the action but doesn't add it to the stack http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/undostack_dz#a_1a2f4c2dc71944a7a7a5a272dfce0e8d43