diff options
Diffstat (limited to 'src/scene.rs')
-rw-r--r-- | src/scene.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scene.rs b/src/scene.rs index 368c784..0aa775c 100644 --- a/src/scene.rs +++ b/src/scene.rs @@ -2,7 +2,7 @@ use crate::hittable::{Hittable, Hit}; use crate::ray::Ray; pub struct Scene { - objects: Vec<Box<dyn Hittable>> + objects: Vec<Box<dyn Hittable + std::marker::Sync>> } impl Scene { @@ -10,7 +10,7 @@ impl Scene { Scene { objects: Vec::new() } } - pub fn add(&mut self, obj: Box<dyn Hittable>) { + pub fn add(&mut self, obj: Box<dyn Hittable + std::marker::Sync>) { self.objects.push(obj) } |