Fix GlobalVertex duplication in build method

This commit is contained in:
Hanno Braun 2022-10-07 13:28:55 +02:00
parent f4ff958d03
commit 80784a1c3b

View File

@ -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);