Skip to content

Commit bc00bd0

Browse files
committed
limit asset editor undo to current session
1 parent ccbe38e commit bc00bd0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ide/views/asseteditor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ export class AssetEditorView implements ProjectView, pixed.EditorContext {
381381
setVisible?(showing: boolean): void {
382382
// TODO: make into toolbar?
383383
if (showing) {
384+
// limit undo to since opening this editor
385+
projectWindows.undofiles = [];
384386
if (Mousetrap.bind) Mousetrap.bind('mod+z', projectWindows.undoStep.bind(projectWindows));
385387
} else {
386388
if (Mousetrap.unbind) Mousetrap.unbind('mod+z');

0 commit comments

Comments
 (0)