We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd11bf commit 479688dCopy full SHA for 479688d
1 file changed
node-graph/nodes/vector/src/vector_nodes.rs
@@ -2275,6 +2275,9 @@ async fn index_points(
2275
) -> DVec2 {
2276
let points_count = content.iter().map(|row| row.element.point_domain.positions().len()).sum::<usize>();
2277
2278
+ if points_count == 0 {
2279
+ return DVec2::ZERO;
2280
+ }
2281
// Clamp and allow negative indexing from the end
2282
let index = index as isize;
2283
let index = if index < 0 {
0 commit comments