mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Limit the Sample to Points node's spacing value to prevent freezing when 0
This commit is contained in:
parent
674db97dc4
commit
390574d5c6
1 changed files with 3 additions and 0 deletions
|
@ -635,6 +635,9 @@ async fn sample_points<F: 'n + Send + Copy>(
|
|||
)]
|
||||
subpath_segment_lengths: impl Node<F, Output = Vec<f64>>,
|
||||
) -> 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.
|
||||
let vector_data = vector_data.eval(footprint).await;
|
||||
let vector_data = vector_data.one_item();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue