mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-17 21:56:21 +00:00
Fix object duplication in as_circle_from_radius
This commit is contained in:
parent
b7d878b9e1
commit
acdaaabe1d
@ -85,6 +85,7 @@ impl PartialHalfEdge {
|
|||||||
/// Update partial half-edge as a circle, from the given radius
|
/// Update partial half-edge as a circle, from the given radius
|
||||||
pub fn as_circle_from_radius(mut self, radius: impl Into<Scalar>) -> Self {
|
pub fn as_circle_from_radius(mut self, radius: impl Into<Scalar>) -> Self {
|
||||||
let curve = Handle::<Curve>::partial()
|
let curve = Handle::<Curve>::partial()
|
||||||
|
.with_global_form(self.extract_global_curve())
|
||||||
.with_surface(self.surface.clone())
|
.with_surface(self.surface.clone())
|
||||||
.as_circle_from_radius(radius);
|
.as_circle_from_radius(radius);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user