From 8778ce81b742c05930ba9c12fa3d57ba1a75e6c0 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 19 Mar 2020 12:58:46 +0100 Subject: [PATCH] library: render: lights: optional deserialization --- src/render/light_aggregate.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/render/light_aggregate.rs b/src/render/light_aggregate.rs index 83052e3..03d3fbf 100644 --- a/src/render/light_aggregate.rs +++ b/src/render/light_aggregate.rs @@ -4,9 +4,13 @@ use std::iter::Iterator; #[derive(Debug, PartialEq, Deserialize)] pub struct LightAggregate { + #[serde(default)] ambients: Vec, + #[serde(default)] directionals: Vec, + #[serde(default)] points: Vec, + #[serde(default)] spots: Vec, }