Texture / Image location based on xml directory.
Closed this issue · 2 comments
danoli3 commented
If the generated xml is located in another folder, this needs to be located and load the texture relative to this.
So:
data/assets/sprite.xml
Should load a texture of:
data/assets/sprite.png
Currently if the generated XML loads a relative path which will look like
sprite.png
So it will currently load:
data/sprite.png
danoli3 commented
Need to do a ofFile.doesFileExist check against
- XML location on disk + target file name, if exists use that (default).
- Else check main data folder ( or fail )
danoli3 commented
This is fixed :)