From bd37a2f969f77be62b5514e032f5fb0928cba926 Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Tue, 6 Oct 2026 21:09:40 +0300 Subject: [PATCH] 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 --- src/app/update/file.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/update/file.rs b/src/app/update/file.rs index 45d0cf71a..491f349d9 100644 --- a/src/app/update/file.rs +++ b/src/app/update/file.rs @@ -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);