Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 13, 2022
1 parent b804cb1 commit ba0aaab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/fj-kernel/src/partial/objects/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
Curve, GlobalCurve, GlobalEdge, GlobalVertex, HalfEdge, Objects,
Surface, Vertex,
},
partial::{MaybePartial, MergeWith, PartialCurve},
partial::{MaybePartial, MergeWith, PartialCurve, PartialVertex},
storage::Handle,
validate::ValidationError,
};
Expand Down Expand Up @@ -97,9 +97,9 @@ impl PartialHalfEdge {
};
let vertices = self.vertices.try_map_ext(|vertex| {
vertex
.update_partial(|mut vertex| {
vertex.curve = curve.clone().into();
vertex
.merge_with(PartialVertex {
curve: curve.clone().into(),
..Default::default()
})
.into_full(objects)
})?;
Expand Down

0 comments on commit ba0aaab

Please sign in to comment.