diff options
Diffstat (limited to 'client/src/render/scene/mod.rs')
-rw-r--r-- | client/src/render/scene/mod.rs | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/client/src/render/scene/mod.rs b/client/src/render/scene/mod.rs index 16eecfc..7743409 100644 --- a/client/src/render/scene/mod.rs +++ b/client/src/render/scene/mod.rs @@ -293,13 +293,11 @@ impl ScenePreparer { }) { tex_albedo = Some(bg) } - } else { - if let Some((_tex, bg)) = self - .placeholder_textures - .try_get(TextureIdentityKind::Multiply) - { - tex_albedo = Some(bg) - } + } else if let Some((_tex, bg)) = self + .placeholder_textures + .try_get(TextureIdentityKind::Multiply) + { + tex_albedo = Some(bg) } let mut tex_normal = None; if let Some(normalres) = part.tex_normal { @@ -309,13 +307,11 @@ impl ScenePreparer { }) { tex_normal = Some(bg) } - } else { - if let Some((_tex, bg)) = self - .placeholder_textures - .try_get(TextureIdentityKind::Normal) - { - tex_normal = Some(bg) - } + } else if let Some((_tex, bg)) = self + .placeholder_textures + .try_get(TextureIdentityKind::Normal) + { + tex_normal = Some(bg) } let material = self.materials.try_get({ |