mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Limit the Sample to Points node's spacing value to prevent freezing when 0
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user