This is again a bandaid solution to this map with -1 problem, but it'll work for the normies

This commit is contained in:
2025-08-28 17:00:21 -04:00
parent 2c62f5701c
commit d92dbc5b6d

View File

@@ -54,6 +54,8 @@ bool anm2_serialize(Anm2* self, const std::string& path)
for (auto& [id, spritesheet] : self->spritesheets)
{
if (id == ID_NONE) continue;
XMLElement* spritesheetElement;
// Spritesheet
@@ -70,6 +72,8 @@ bool anm2_serialize(Anm2* self, const std::string& path)
for (auto& [id, layer] : self->layers)
{
if (id == ID_NONE) continue;
XMLElement* layerElement;
// Layer
@@ -88,6 +92,8 @@ bool anm2_serialize(Anm2* self, const std::string& path)
for (auto& [id, null] : self->nulls)
{
if (id == ID_NONE) continue;
XMLElement* nullElement;
// Null
@@ -108,6 +114,8 @@ bool anm2_serialize(Anm2* self, const std::string& path)
for (auto& [id, event] : self->events)
{
if (id == ID_NONE) continue;
XMLElement* eventElement;
// Event
@@ -129,6 +137,8 @@ bool anm2_serialize(Anm2* self, const std::string& path)
for (auto& [id, animation] : self->animations)
{
if (id == ID_NONE) continue;
XMLElement* animationElement;
XMLElement* rootAnimationElement;
XMLElement* layerAnimationsElement;