diff --git a/node-graph/gcore/src/vector/vector_nodes.rs b/node-graph/gcore/src/vector/vector_nodes.rs index be1a9f4a..389ef988 100644 --- a/node-graph/gcore/src/vector/vector_nodes.rs +++ b/node-graph/gcore/src/vector/vector_nodes.rs @@ -635,6 +635,9 @@ async fn sample_points( )] subpath_segment_lengths: impl Node>, ) -> 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();