Make asset undo/redo reliable

This commit is contained in:
Fred Sauer committed 2026-03-22 10:40:31 -07:00
1 parent b3a9ebd5cd
commit 586a6530e5
1 file changed
+6
+6
View File
@@ -177,6 +177,9 @@ export class ProjectWindows {
var wnd = this.id2window[fileid];
if (wnd && wnd.undoStep) {
wnd.undoStep();
if (wnd.getValue) {
this.project.updateFile(fileid, wnd.getValue());
}
this.redofiles.push(fileid);
this.refresh(false);
} else {
@@ -189,6 +192,9 @@ export class ProjectWindows {
var wnd = this.id2window[fileid];
if (wnd && wnd.redoStep) {
wnd.redoStep();
if (wnd.getValue) {
this.project.updateFile(fileid, wnd.getValue());
}
this.undofiles.push(fileid);
this.refresh(false);
} else {