Working cap selection and deletion

This commit is contained in:
Pierre Jacquier
2025-01-03 11:47:52 -05:00
parent 5faac34a51
commit 43f16b3aac
2 changed files with 5 additions and 1 deletions

View File

@ -405,7 +405,8 @@ export function getArtifactsToUpdate({
type: 'sweep',
subType: 'loft',
id,
pathId: response.data.modeling_response.data.solid_id,
// TODO: make sure this is the right one to give here
pathId: cmd.section_ids[0],
surfaceIds: [],
edgeIds: [],
codeRef: { range, pathToNode },

View File

@ -168,6 +168,9 @@ async fn inner_loft(
}));
};
#[cfg(target_arch = "wasm32")]
web_sys::console::log_1(&format!("Rust Loft result solid_id={:?}", data.solid_id).into());
// Take the sketch with the most paths, and override its id with the loft's solid_id (to get its faces)
let mut desc_sorted_sketches = sketches.to_vec();
desc_sorted_sketches.sort_by(|s0, s1| s1.paths.len().cmp(&s0.paths.len()));