danoli3/ofxTexturePacker

Texture / Image location based on xml directory.

Closed this issue · 2 comments

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

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 )

This is fixed :)