From 6f158e1f189aa23b4cc10de3de3a4965c8191799 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 11 Nov 2022 16:58:03 +0100 Subject: [PATCH] Refactor --- crates/fj-kernel/src/partial/objects/vertex.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/fj-kernel/src/partial/objects/vertex.rs b/crates/fj-kernel/src/partial/objects/vertex.rs index ce6ba3c7e..111ddf7fc 100644 --- a/crates/fj-kernel/src/partial/objects/vertex.rs +++ b/crates/fj-kernel/src/partial/objects/vertex.rs @@ -107,11 +107,9 @@ impl PartialSurfaceVertex { let global_form = self .global_form - .update_partial(|_| { - PartialGlobalVertex::from_surface_and_position( - &surface, position, - ) - }) + .merge_with(PartialGlobalVertex::from_surface_and_position( + &surface, position, + )) .into_full(objects)?; Ok(SurfaceVertex::new(position, surface, global_form))