diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-16 07:59:59 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-16 07:59:59 +0100 |
commit | 07716595e0c26ba6d19ee6c498280508ca5aa6c2 (patch) | |
tree | da22b4d88e63419a366c48037cbef14f8f43a2b4 /loader/atlas.cpp | |
parent | ae53b814c310d1996db0b818151ef7b205d03b7b (diff) |
a
Diffstat (limited to 'loader/atlas.cpp')
-rw-r--r-- | loader/atlas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/atlas.cpp b/loader/atlas.cpp index f61502fe..100f638e 100644 --- a/loader/atlas.cpp +++ b/loader/atlas.cpp @@ -75,7 +75,7 @@ std::shared_ptr<anim_atlas> loader_impl::anim_atlas(StringView name, StringView [&](const anim_group& x) { return x.name == group.mirror_from; }); if (it == anim_info.groups.cend()) fm_throw("can't find group '{}' to mirror from '{}'"_cf, group.mirror_from, group.name); - group.frames = it->frames; + group.frames = array(arrayView(it->frames)); for (anim_frame& f : group.frames) f.ground = Vector2i((Int)f.size[0] - f.ground[0], f.ground[1]); } @@ -85,7 +85,7 @@ std::shared_ptr<anim_atlas> loader_impl::anim_atlas(StringView name, StringView fm_soft_assert(!anim_info.object_name.isEmpty()); fm_soft_assert(anim_info.pixel_size.product() > 0); - fm_soft_assert(!anim_info.groups.empty()); + fm_soft_assert(!anim_info.groups.isEmpty()); fm_soft_assert(anim_info.nframes > 0); fm_soft_assert(anim_info.nframes == 1 || anim_info.fps > 0); const auto size = tex.pixels().size(); |