summaryrefslogtreecommitdiffhomepage
path: root/crop-tool/serialize.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'crop-tool/serialize.cpp')
-rw-r--r--crop-tool/serialize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/crop-tool/serialize.cpp b/crop-tool/serialize.cpp
index 34d70faa..acefe436 100644
--- a/crop-tool/serialize.cpp
+++ b/crop-tool/serialize.cpp
@@ -80,8 +80,8 @@ void adl_serializer<anim_direction>::from_json(const json& j, anim_direction& x)
} // namespace nlohmann
-NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(anim_frame, ground);
-NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(anim_group, direction, frames, ground);
+NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(anim_frame, ground, offset, size);
+NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(anim_group, name, frames, ground);
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(anim, name, nframes, actionframe, fps, groups);
std::optional<anim> anim::from_json(const std::filesystem::path& pathname)