From 7ea5a827c15a8a9532bbeaa18516a077451098aa Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 12 Oct 2022 16:37:26 +0200 Subject: [PATCH] Increase strictness of cycle validation --- crates/fj-kernel/src/objects/cycle.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/fj-kernel/src/objects/cycle.rs b/crates/fj-kernel/src/objects/cycle.rs index a2a527acc..fbde789c0 100644 --- a/crates/fj-kernel/src/objects/cycle.rs +++ b/crates/fj-kernel/src/objects/cycle.rs @@ -62,8 +62,8 @@ impl Cycle { let [_, last] = last.vertices(); assert_eq!( - first.surface_form(), - last.surface_form(), + first.surface_form().id(), + last.surface_form().id(), "Edges do not form a cycle" ); }