Skip to content

Commit

Permalink
Fix object duplication in as_circle_from_radius
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 11, 2022
1 parent b7d878b commit acdaaab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/fj-kernel/src/partial/objects/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ impl PartialHalfEdge {
/// Update partial half-edge as a circle, from the given radius
pub fn as_circle_from_radius(mut self, radius: impl Into<Scalar>) -> Self {
let curve = Handle::<Curve>::partial()
.with_global_form(self.extract_global_curve())
.with_surface(self.surface.clone())
.as_circle_from_radius(radius);

Expand Down

0 comments on commit acdaaab

Please sign in to comment.