discardRecorded.tool
This package holds more than this page lists. See all of its files in its world.
README.md
Discard recorded scene edits
Remove saved authored edits that reviewRecorded lists under authored, so those fields follow the build again, or forget edits listed under retired. Pass the review receipt and what to discard.
local report=tools.use("sceneAuthoring","reviewRecorded",{})
tools.use("sceneAuthoring","discardRecorded",{review=report.review,entity="lamp"}) -- every saved edit of the entity
tools.use("sceneAuthoring","discardRecorded",{review=report.review,entity="lamp",paths={{"transform","position"}}})
tools.use("sceneAuthoring","discardRecorded",{review=report.review,retired=true}) -- forget every retired edit
The discard is one atomic scene transaction: the composition, the authoring records and the artifact change together, and a stale receipt is refused.