Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 16, 2022
1 parent 31f3304 commit 6622fd3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/fj-kernel/src/partial/objects/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ impl Replace<Surface> for PartialHalfEdge {
fn replace(&mut self, surface: Handle<Surface>) -> &mut Self {
self.curve.replace(surface.clone());

self.vertices = self.vertices.clone().map(|mut vertex| {
for vertex in &mut self.vertices {
vertex.replace(surface.clone());
vertex
});
}

self
}
Expand Down

0 comments on commit 6622fd3

Please sign in to comment.