fixed editing properties of 2d collider shader
@@ -145,22 +145,10 @@ pub struct HeightfieldShape {
pub geometry_source: GeometrySource,
}
-impl Inspect for ColliderShape {
- fn properties(&self) -> Vec<PropertyInfo<'_>> {
- match self {
- ColliderShape::Ball(v) => v.properties(),
- ColliderShape::Cuboid(v) => v.properties(),
- ColliderShape::Capsule(v) => v.properties(),
- ColliderShape::Segment(v) => v.properties(),
- ColliderShape::Triangle(v) => v.properties(),
- ColliderShape::Trimesh(v) => v.properties(),
- ColliderShape::Heightfield(v) => v.properties(),
- }
- }
-}
-
/// Possible collider shapes.
-#[derive(Clone, Debug, Visit, Reflect, AsRefStr, PartialEq, EnumString, EnumVariantNames)]
+#[derive(
+ Clone, Debug, Visit, Inspect, Reflect, AsRefStr, PartialEq, EnumString, EnumVariantNames,
+)]
pub enum ColliderShape {
/// See [`BallShape`] docs.
Ball(BallShape),
