ldtk
ldtk copied to clipboard
[BUG] LDtk cannot handle file paths with curly braces
I'm using Assetpack to manage my asset pipeline. The way it works is by using tags in curly braces on file and directory names to determine how to handle them. For example, a directory called source{ignore} would be ignored by Assetpack, while a directory called props{tps} would be passed through the TexturePacker plugin to be packed into a single spritesheet.
When I attempt to load a file with the path /Users/trezy/Development/clients/birbhouse/discord-activity/assets/source{ignore}/banner.png, LDtk will immediately show File not found: banner.png. If I remove the curly braces from the path, it works fine.
I'm pretty confident it's going to be an issue in dn.FilePath. I'd be happy to open a PR to fix this issue, but I can't find where dn.FilePath is defined. If you can point me in that direction, I'll get to work. 😁