From dd73410d0a7544b4b50159e9d5ce463aa7770b64 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 25 Sep 2023 10:45:45 +0100 Subject: [PATCH] Add trait derivations to Brush and Aabb --- csg/src/aabb.rs | 2 +- csg/src/brush.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/csg/src/aabb.rs b/csg/src/aabb.rs index ff4eca0..d486039 100644 --- a/csg/src/aabb.rs +++ b/csg/src/aabb.rs @@ -1,6 +1,6 @@ use glam::Vec3; -#[derive(Default, Debug)] +#[derive(Default, Debug, Copy, Clone)] pub struct Aabb { pub min: Vec3, pub max: Vec3, diff --git a/csg/src/brush.rs b/csg/src/brush.rs index 0bded9c..cb54be5 100644 --- a/csg/src/brush.rs +++ b/csg/src/brush.rs @@ -37,6 +37,7 @@ pub struct BrushPlane { pub tex_projection: TextureProjection, } +#[derive(Debug, Clone)] pub struct Brush { pub planes: Vec, raw_vertices: Vec,