u3d-community / U3D

Open-source, cross-platform 2D and 3D game engine built in C++
https://u3d.io
MIT License
187 stars 30 forks source link

ObjectAnimation as a Resource only loads XML #52

Open SirNate0 opened 1 year ago

SirNate0 commented 1 year ago

ObjectAnimation supports saving to/from XML and JSON. However, when loaded as a resource through BeginLoad (e.g. through the ResourceCache), it will only load it as XML, even if you pass a JSON file. It should instead check the filename extension to deduce whether it is xml or json (or maybe even the content).

Okkoma commented 5 days ago

see merged PR #72. If ok, you can close this.