library: render: object: remove index field

This commit is contained in:
Bruno BELANYI 2020-03-25 00:08:09 +01:00
parent 2e224b280d
commit c2fd001430

View file

@ -20,9 +20,6 @@ pub struct Object {
pub material: MaterialEnum, pub material: MaterialEnum,
/// The `Object`'s texture /// The `Object`'s texture
pub texture: TextureEnum, pub texture: TextureEnum,
#[serde(skip_deserializing)]
/// Index inside the `BVH`
index: usize,
} }
impl Object { impl Object {
@ -55,7 +52,6 @@ impl Object {
shape, shape,
material, material,
texture, texture,
index: 0,
} }
} }
} }
@ -111,7 +107,6 @@ mod test {
shape: shape.into(), shape: shape.into(),
material: material.into(), material: material.into(),
texture: texture.into(), texture: texture.into(),
index: 0,
} }
) )
} }