diff --git a/fj-operations/src/sweep.rs b/fj-operations/src/sweep.rs index 15f816fc8..0a2dab176 100644 --- a/fj-operations/src/sweep.rs +++ b/fj-operations/src/sweep.rs @@ -10,7 +10,7 @@ impl ToShape for fj::Sweep { self.shape().to_shape(tolerance, debug_info), Vector::from([0., 0., self.length()]), tolerance, - self.color(), + self.shape().color(), ) } diff --git a/fj/src/shape_3d.rs b/fj/src/shape_3d.rs index be6ae2ba1..2962afc27 100644 --- a/fj/src/shape_3d.rs +++ b/fj/src/shape_3d.rs @@ -113,11 +113,6 @@ impl Sweep { pub fn length(&self) -> f64 { self.length } - - /// Access the color of the shape being swept - pub fn color(&self) -> [u8; 4] { - self.shape().color() - } } impl From for Shape {