review(#1627): the snapshot-save preparation is native-only

It stamps sheet set data, which the web build does not have; the wasm
check failed once #1627 split it out of prepare_native_save.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-06 21:09:40 +03:00
1 parent 0149a276ef
commit bd37a2f969
1 file changed
+1
+1
View File
@@ -2170,6 +2170,7 @@ impl OpenCADStudio {
/// Bring the drawing state the file stores up to date, without the save
/// event an autosave does not raise.
#[cfg(not(target_arch = "wasm32"))]
pub(in crate::app) fn prepare_snapshot_save(&mut self, i: usize) {
self.sync_view_state_for_save(i);
sync_annotation_scale_header(&mut self.tabs[i].scene);