From ba0aaabaf5aee72b6ac6a8fc90ecdae3409af1de Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Sat, 12 Nov 2022 19:57:17 +0100 Subject: [PATCH] Refactor --- crates/fj-kernel/src/partial/objects/edge.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/fj-kernel/src/partial/objects/edge.rs b/crates/fj-kernel/src/partial/objects/edge.rs index 62b85eac1..6a44d916d 100644 --- a/crates/fj-kernel/src/partial/objects/edge.rs +++ b/crates/fj-kernel/src/partial/objects/edge.rs @@ -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, }; @@ -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) })?;