Skip to content

Commit

Permalink
refactor: update serde skipped fields
Browse files Browse the repository at this point in the history
  • Loading branch information
manankarnik committed Jan 12, 2024
1 parent 7c296a2 commit c9a6dce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ pub struct Map {
/// Size of the map
pub size: [u32; 2],
/// If true, `ImageSampler::linear()` is used else `ImageSampler::nearest()`
#[serde(skip)]
pub anti_aliasing: bool,
/// If true, exports model in glb format
#[serde(skip)]
pub export: bool,
}

Expand Down
2 changes: 1 addition & 1 deletion src/noise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl Default for Region {
#[serde(rename_all = "camelCase")]
pub struct Gradient {
/// Image handle of gradient
#[serde(skip_serializing, skip_deserializing)]
#[serde(skip)]
pub image: Handle<Image>,
/// Size of gradient
pub size: [u32; 2],
Expand Down
1 change: 1 addition & 0 deletions src/planet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ pub struct Planet {
/// If true, exports model in glb format
/// Native: Shows save file dialog.
/// WASM: Downloads model based on browser configuration.
#[serde(skip)]
pub export: bool,
}

Expand Down
1 change: 1 addition & 0 deletions src/terrain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub struct Terrain {
/// The mesh below this value will be flat
pub sea_percent: f32,
/// If true, exports model in glb format
#[serde(skip)]
pub export: bool,
}

Expand Down

0 comments on commit c9a6dce

Please sign in to comment.