fix: discard chunk-editor drafts so they cannot overwrite another chunk
project_85689633_bot_782f591ee30607a5698798444cb41267 authored 2 months ago
Leaving a dirty chunk and clicking Discard left the local draft and dirty
flag in place while navigation already pointed at the next chunk. The
unsaved prompt then returned, and Save wrote the leftover paint onto
whichever chunk was selected.
Clear draft/backup/neighbor dirty state on discard, and bind save/keep-dirty
to the chunk the edits belong to rather than the currently viewed chunk.
Co-authored-by: tim <tim@timfalken.com>