feat(block-editor): isolate session history and add save checkpoints

This commit is contained in:
Karim Jerbi committed 2026-10-13 15:35:24 +01:00
1 parent 535710e5d1
commit f39fb31137
15 files changed
+1002 -255

No files matched your search

+3
View File
@@ -205,6 +205,8 @@ pub(super) struct DocumentTab {
/// Index of the field that TAB has focused (the one keystrokes edit).
pub(super) dyn_active: usize,
pub(super) history: HistoryState,
/// Drawing history is suspended while `history` belongs to BEDIT.
pub(super) block_edit_history: Option<super::block_editor::BlockEditHistory>,
pub(super) active_layer: String,
/// Block references whose properties panel shows per-axis Scale X/Y/Z even
/// though the three factors are currently equal — the user unchecked the
@@ -653,6 +655,7 @@ impl DocumentTab {
dyn_ref_screen: None,
dyn_active: 0,
history: HistoryState::default(),
block_edit_history: None,
active_layer: "0".to_string(),
props_asym_scale: std::collections::HashSet::new(),
graph: Default::default(),