Skip to content

Commit 97eb0ba

Browse files
committed
fix reversing for Repeat On Points (reverse before enumerate)
1 parent 629a1f4 commit 97eb0ba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

node-graph/nodes/repeat/src/repeat_nodes.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ async fn repeat_on_points<T: Into<Graphic> + Default + Send + Clone + 'static>(
170170
}
171171
};
172172

173-
let range = points_element.point_domain.positions().iter().enumerate();
173+
let range = points_element.point_domain.positions().iter();
174174
if reverse {
175-
for (index, &point) in range.rev() {
175+
for (index, &point) in range.rev().enumerate() {
176176
iteration(index, point).await;
177177
}
178178
} else {
179-
for (index, &point) in range {
179+
for (index, &point) in range.enumerate() {
180180
iteration(index, point).await;
181181
}
182182
}

0 commit comments

Comments
 (0)