Change tolerance to use the module units

This commit is contained in:
Jonathan Tran
2025-03-14 15:37:56 -04:00
parent e9806b83d7
commit 563ed6751b
4 changed files with 11 additions and 5 deletions

View File

@ -163,7 +163,7 @@ async fn inner_sweep(
target: sketch.id.into(),
trajectory,
sectional: sectional.unwrap_or(false),
tolerance: LengthUnit(tolerance.unwrap_or(default_tolerance(&args.ctx.settings.units))),
tolerance: LengthUnit(tolerance.unwrap_or_else(|| default_tolerance(&exec_state.length_unit().into()))),
}),
)
.await?;