derive Clone/Copy/Debug trio for shape::Cylinder (#9705)
# Objective I needed to copy a cylinder. Can be done with other shapes already. ## Solution Add proper `#[derive(..)]` attribute,
This commit is contained in:
parent
118509e4aa
commit
d04e4bbde1
@ -2,6 +2,7 @@ use crate::mesh::{Indices, Mesh};
|
||||
use wgpu::PrimitiveTopology;
|
||||
|
||||
/// A cylinder which stands on the XZ plane
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct Cylinder {
|
||||
/// Radius in the XZ plane.
|
||||
pub radius: f32,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user