Wave 450/509: STEP import: a solid the kernel refuses, its faces too, is refused with the reason, never a mesh (and 3 more)
4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop. - 709765fca jyviko: Model cache: a saved model records its body check mode and is adopted under it - 393c83c2a jyviko: STEP import: a solid the kernel refuses, its faces too, is refused with the reason, never a mesh - 6700e6ef1 jyviko: kernel: a body SMLib keeps in the record's order is mapped, whatever order its export lists - 222211de4 jyviko: Model cache: a thinned model keeps the check mode only as the model records it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
@@ -617,14 +617,13 @@ impl Session {
|
||||
// The session keeps what is hidden (an undo step of its own); the design file carries it.
|
||||
let visibility = std::mem::take(&mut doc.visibility);
|
||||
let doc = Arc::new(doc);
|
||||
// A model saved under another check mode holds that mode's results: evaluated again.
|
||||
let adopted = saved
|
||||
.filter(|_| solidcraft_geom::env::var_os("NO_MODEL_CACHE").is_none())
|
||||
.and_then(|saved| Model::adopt(&doc, saved).map_err(|e| log::info!("the saved model is not used: {e}")).ok());
|
||||
.and_then(|saved| Model::adopt(&doc, saved).map_err(|e| log::info!("the saved model is not used: {e}")).ok())
|
||||
.filter(|model| model.validation() == validation);
|
||||
let model = match adopted {
|
||||
Some(mut model) => {
|
||||
model.set_validation(validation);
|
||||
model
|
||||
}
|
||||
Some(model) => model,
|
||||
None => {
|
||||
let mut model = Model::new();
|
||||
model.set_validation(validation);
|
||||
|
||||
Reference in New Issue
Block a user