From c2fd001430bb2eeaa5e6d7c75dfc491ba48e83df Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 25 Mar 2020 00:08:09 +0100 Subject: [PATCH] library: render: object: remove index field --- pathtracer/src/render/object.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pathtracer/src/render/object.rs b/pathtracer/src/render/object.rs index d7b4399..c76b166 100644 --- a/pathtracer/src/render/object.rs +++ b/pathtracer/src/render/object.rs @@ -20,9 +20,6 @@ pub struct Object { pub material: MaterialEnum, /// The `Object`'s texture pub texture: TextureEnum, - #[serde(skip_deserializing)] - /// Index inside the `BVH` - index: usize, } impl Object { @@ -55,7 +52,6 @@ impl Object { shape, material, texture, - index: 0, } } } @@ -111,7 +107,6 @@ mod test { shape: shape.into(), material: material.into(), texture: texture.into(), - index: 0, } ) }