mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-16 19:40:41 +00:00
d560df3392
* Restore modified flag when undoing to saved state Undoing every edit should return the session to its saved, unmodified state so the unsaved-work prompt is not shown spuriously. Make undo and redo preserve the restored snapshot's modified flag while still marking the graph dirty for cooking, and add a regression test that edits from a clean session and undoes to assert modified is false. Test: undo_to_unmodified_state_clears_modified_flag failed before the change and passes after. * Tests: add a node that exists on main Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com> Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>