diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-09 08:51:08 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-09 08:51:08 +0100 |
commit | b8b9e24acff21404943252f70ba137c7a8d0be72 (patch) | |
tree | 7586796f7ca6d192490eed1778a388d81efc1d0a /serialize/wall-atlas.cpp | |
parent | 6dcc095ee5a7a26060e6650afa0a754f404584ea (diff) |
w
Diffstat (limited to 'serialize/wall-atlas.cpp')
-rw-r--r-- | serialize/wall-atlas.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/serialize/wall-atlas.cpp b/serialize/wall-atlas.cpp index dfc77bc3..c0e7df03 100644 --- a/serialize/wall-atlas.cpp +++ b/serialize/wall-atlas.cpp @@ -222,8 +222,6 @@ Group read_group_metadata(const json& jgroup) if (jgroup.contains("pixel-size")) val.pixel_size = jgroup["pixel-size"]; - if (jgroup.contains("from-rotation") && !jgroup["from-rotation"].is_null()) - val.from_rotation = (uint8_t)direction_index_from_name(std::string{ jgroup["from-rotation"] }); if (jgroup.contains("mirrored")) val.mirrored = !!jgroup["mirrored"]; @@ -298,10 +296,6 @@ void write_group_metadata(json& jgroup, const Group& val) jgroup["tint-mult"] = val.tint_mult; jgroup["tint-add"] = val.tint_add; } - if (val.from_rotation != group_defaults.from_rotation) - jgroup["from-rotation"] = direction_index_to_name(val.from_rotation); - else - jgroup["from-rotation"] = nullptr; jgroup["mirrored"] = val.mirrored; } |