From afe2e7d3f58499dbff5a44f5253dda477797b44d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 26 May 2022 01:04:46 +0100 Subject: [PATCH] shapelib: Fix backward incompatible unnotched, stack_pos Signed-off-by: Ian Jackson --- src/deck.rs | 1 + src/hidden.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/deck.rs b/src/deck.rs index 08137254..c90a843b 100644 --- a/src/deck.rs +++ b/src/deck.rs @@ -14,6 +14,7 @@ pub const ENABLED_DESC : HtmlLit = Html::lit("a pickup deck (enabled)"); struct Deck { shape: GenericSimpleShape<(), RectOutline>, label: Option, + #[serde(default="PosC::zero")] stack_pos: Pos, } diff --git a/src/hidden.rs b/src/hidden.rs index 084e5dff..f1389081 100644 --- a/src/hidden.rs +++ b/src/hidden.rs @@ -52,6 +52,7 @@ pub struct Occultation { region: Region, // automatically affect pieces here occulter: PieceId, // kept in synch with PieceOccult::active notches: Notches, // kept in synch with PieceOccult::passive + #[serde(default)] unnotched: HashSet, // kept in synch with PieceOccult::passive ppiece_use_size: Pos, // taken from first piece #[serde(flatten)] views: OccultationViews, -- 2.30.2