Repair duplicate content ids on load; pass unknown attributes and text through

- Duplicate ids in any content list (spritesheets, shaders, layers, nulls, events,
  sounds, regions) are repaired at load: the first holder keeps the id, so tracks
  stay bound to the item they referenced (previously remapped to the wrong layer)
- Unknown attributes and element text survive save; retired BakeCount/OriginalDelay
  are still dropped. Private corpus (1,251 files) output unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 14:40:20 -04:00
1 parent 8953101245
commit 5311c2835f
28 files changed
+223 -175

No files matched your search

+2
View File
@@ -323,6 +323,8 @@ namespace anm2ed
Origin origin{Origin::CUSTOM};
float rotation{};
std::vector<int> soundIds{};
std::vector<std::pair<std::string, std::string>> extraAttributes{};
std::string text{};
glm::vec2 pivot{};
glm::vec2 crop{};
glm::vec2 position{};