FinishRecordingOperation
Controls how ChangeHistoryService:FinishRecording() completes or discards a recording session.
Items 3
| History | Name | Value | Description | |
|---|---|---|---|---|
| 583 | Cancel | 0 | Cancels the recording, automatically undoing any work in progress. | |
| 583 | Commit | 1 | Commits the recorded work. | |
| 583 | Append | 2 | Commits the recorded work and merges with the previous recording if possible. |
Description
Controls what ChangeHistoryService:FinishRecording() does when a plugin ends a recording. Pass FinishRecordingOperation.Commit to push recorded changes onto the undo/redo stack, FinishRecordingOperation.Append to merge them with the previous entry when possible, or FinishRecordingOperation.Cancel to discard them.