From 80784a1c3b0ef2eb39e912a85c9330fced4490ed Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 7 Oct 2022 13:28:55 +0200 Subject: [PATCH] Fix `GlobalVertex` duplication in `build` method --- crates/fj-kernel/src/partial/objects/edge.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/fj-kernel/src/partial/objects/edge.rs b/crates/fj-kernel/src/partial/objects/edge.rs index 640caa6e3..768cfbec1 100644 --- a/crates/fj-kernel/src/partial/objects/edge.rs +++ b/crates/fj-kernel/src/partial/objects/edge.rs @@ -201,10 +201,9 @@ impl PartialHalfEdge { let global_form = self .global_form - .unwrap_or_else(|| { - GlobalEdge::partial() - .from_curve_and_vertices(&curve, &vertices) - .into() + .unwrap_or_else(|| GlobalEdge::partial().into()) + .update_partial(|partial| { + partial.from_curve_and_vertices(&curve, &vertices) }) .into_full(objects);