Limit the Sample to Points node's spacing value to prevent freezing when 0
This commit is contained in:
parent
674db97dc4
commit
390574d5c6
|
|
@ -635,6 +635,9 @@ async fn sample_points<F: 'n + Send + Copy>(
|
||||||
)]
|
)]
|
||||||
subpath_segment_lengths: impl Node<F, Output = Vec<f64>>,
|
subpath_segment_lengths: impl Node<F, Output = Vec<f64>>,
|
||||||
) -> VectorDataTable {
|
) -> VectorDataTable {
|
||||||
|
// Limit the smallest spacing to something sensible to avoid freezing the application.
|
||||||
|
let spacing = spacing.max(0.01);
|
||||||
|
|
||||||
// Evaluate vector data and subpath segment lengths asynchronously.
|
// Evaluate vector data and subpath segment lengths asynchronously.
|
||||||
let vector_data = vector_data.eval(footprint).await;
|
let vector_data = vector_data.eval(footprint).await;
|
||||||
let vector_data = vector_data.one_item();
|
let vector_data = vector_data.one_item();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue