Skip to content

Commit

Permalink
chore: modify Theme derive
Browse files Browse the repository at this point in the history
  • Loading branch information
miseyu committed Apr 19, 2024
1 parent 629b41c commit 3b72813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nusamai-plateau/src/appearance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use url::Url;

use crate::models::appearance::{self, ParameterizedTexture, SurfaceDataProperty, X3DMaterial};

#[derive(Debug, Default, serde::Serialize, serde::Deserialize)]
#[derive(Debug, Default, Clone, serde::Serialize, serde::Deserialize)]
pub struct Theme {
pub ring_id_to_texture: HashMap<LocalId, (u32, LineString2<'static>)>, // TODO: texture index is redundant
pub surface_id_to_material: HashMap<LocalId, u32>,
Expand Down Expand Up @@ -52,7 +52,7 @@ impl Hash for Material {
self.ambient_intensity.to_bits().hash(state);
}
}
#[derive(Debug, Default, serde::Serialize, serde::Deserialize)]
#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
pub struct AppearanceStore {
pub textures: Vec<Texture>,
pub materials: Vec<Material>,
Expand Down

0 comments on commit 3b72813

Please sign in to comment.