Replace the Rounded<S> type by a non-generic RoundCylinder type.

This commit is contained in:
Crozet Sébastien
2020-10-27 09:20:40 +01:00
parent dbdd797d59
commit 8c872dc0af
6 changed files with 54 additions and 58 deletions

View File

@@ -412,7 +412,10 @@ impl GraphicsManager {
}
#[cfg(feature = "dim3")]
if let Some(cylinder) = shape.as_cylinder().or(shape.as_rounded().map(|r| &r.shape)) {
if let Some(cylinder) = shape
.as_cylinder()
.or(shape.as_round_cylinder().map(|r| &r.cylinder))
{
out.push(Node::Cylinder(Cylinder::new(
handle,
cylinder.half_height,