forked from 1b-agent/opencadstudio-upstream
fix(save): preserve 3D view and thumbnails
Persist camera, render state, and solid fallback geometry across saves. Generate previews from a clean live viewport and refresh recent-file thumbnails immediately.
This commit is contained in:
1 parent
c4515cbbc1
commit
e94cbedaa2
15 files changed
+658
-629
No files matched your search
+3
-2
@@ -924,6 +924,7 @@ impl Scene {
|
||||
annotation_scale_handle: Option<Handle>,
|
||||
all_visible: bool,
|
||||
viewport: Option<Handle>,
|
||||
tint_selected: bool,
|
||||
) -> Vec<HatchModel> {
|
||||
let layer_hidden = |layer: &str| {
|
||||
self.document
|
||||
@@ -1098,7 +1099,7 @@ impl Scene {
|
||||
}
|
||||
}
|
||||
}
|
||||
if self.selected.contains(&handle) {
|
||||
if tint_selected && self.selected.contains(&handle) {
|
||||
m.color = [0.15, 0.55, 1.00, m.color[3]];
|
||||
}
|
||||
let d = depth_map.get(&handle.value()).map_or(0.0, |d| d[0]);
|
||||
@@ -1115,7 +1116,7 @@ impl Scene {
|
||||
models.extend(self.instanced_hatch_models(
|
||||
target_block,
|
||||
hatch_bg,
|
||||
true,
|
||||
tint_selected,
|
||||
frozen,
|
||||
annotation_scale_handle,
|
||||
all_visible,
|
||||
|
||||
Reference in new issue
Block a user