fix backwards compatible rule fields

This commit is contained in:
Crispy 2024-05-04 12:53:34 +02:00
parent 07cbd88618
commit 5af7cc0cb1
2 changed files with 6 additions and 3 deletions

View file

@ -27,7 +27,9 @@ pub struct Rule {
variants: Vec<SubRule>,
pub enabled: bool,
// probability: u8
#[serde(alias = "flip_h")]
pub flip_x: bool,
#[serde(alias = "flip_v")]
pub flip_y: bool,
pub rotate: bool,
}