summaryrefslogtreecommitdiff
path: root/client/src/camera.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/camera.rs')
-rw-r--r--client/src/camera.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/camera.rs b/client/src/camera.rs
index bd86e79..ea984b3 100644
--- a/client/src/camera.rs
+++ b/client/src/camera.rs
@@ -23,6 +23,12 @@ pub struct Camera {
pub aspect: f32,
}
+impl Default for Camera {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl Camera {
pub fn new() -> Self {
Self {