add missing default

This commit is contained in:
Robin Appelman 2023-12-19 18:23:12 +01:00
commit ca3db417d5
2 changed files with 2 additions and 1 deletions

View file

@ -71,7 +71,7 @@ pub struct LightMappedGenericMaterial {
pub translucent: bool, pub translucent: bool,
/// Specifies a texture that will provide three-dimensional lighting information for a material. /// Specifies a texture that will provide three-dimensional lighting information for a material.
#[serde(rename = "$bumpmap", deserialize_with = "deserialize_path")] #[serde(rename = "$bumpmap", default, deserialize_with = "deserialize_path")]
pub bump_map: Option<String>, pub bump_map: Option<String>,
/// Per-texel color modification via a warp texture. /// Per-texel color modification via a warp texture.
#[serde( #[serde(

View file

@ -15,6 +15,7 @@ pub struct WorldVertexTransitionMaterial {
/// Modulate the blending between materials using a special texture. /// Modulate the blending between materials using a special texture.
#[serde( #[serde(
rename = "$blendmodulatetexture", rename = "$blendmodulatetexture",
default,
deserialize_with = "deserialize_path" deserialize_with = "deserialize_path"
)] )]
pub blend_modulate_texture: Option<String>, pub blend_modulate_texture: Option<String>,